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

Problems making canvas larger and keeping resolution #3

Open
vitroelsa opened this issue Aug 2, 2017 · 0 comments
Open

Problems making canvas larger and keeping resolution #3

vitroelsa opened this issue Aug 2, 2017 · 0 comments

Comments

@vitroelsa
Copy link

I'm having trouble making the canvas for this webgl code larger, without sacrificing resolution. When I double the resolution its gets choppy and the broswer can't handle.

I can zoom in and turn the angle of the camera but i'd rather zoom in a little, and then make the canvas larger so I don't lose resolution by zooming in too far. If I use CSS and make the canvas larger, the water is just stretched and the resolution looks worse. I want to make the canvas bigger though so I can fill the entire screen with water. Also, when it's large enough when resizing down to mobile as a background.

Any ideas? Here's a screenshot of what I have so far, I just wish the canvas ws larger so I didn't have to zoom in so much.

https://i.stack.imgur.com/ocVXE.png

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

1 participant