Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fullscreen / resize with the window #2

Open
Denoizzed opened this issue Oct 1, 2013 · 2 comments
Open

Fullscreen / resize with the window #2

Denoizzed opened this issue Oct 1, 2013 · 2 comments

Comments

@Denoizzed
Copy link

Great plugin guys, thanks so much!

But how do you make it fullscreen / resizable like in the example: http://wagerfield.github.io/flat-surface-shader?

Thanks

@GabrielJadderson
Copy link

you could try this:
instead of

var geometry = new FSS.Plane(600, 400, 6, 4);

put

var geometry = new FSS.Plane(screen.availWidth, screen.availHeight, 6, 4);

@cyborgcassowary
Copy link

For resizing the plane, I found it best to use container.offsetHeight:

   function resize() {
         renderer.setSize(screen.availWidth, container.offsetHeight);
   }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants