-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Examples: Clean up #11886
Examples: Clean up #11886
Conversation
Thanks! |
Sorry, I am not in favor of this at all... three.js does not support Consequently, I would not add further credence to that pattern by adding a comment justifying it. The only reason it works in these examples, is because the material is
The proper answer is to say "don't do it". The way to handle this is to use this pattern:
I'm not sure how to handle video textures in this case, though. That example appears to be distorted anyway, so something is not right... |
👍 |
@WestLangley Yes, i know the drawbacks of this approach. I'm actually familiar with your posts at stackoverflow 😉 e.g. https://stackoverflow.com/a/16840273 Although But yeah, the mentioned code snippet is of course the cleaner approach. |
BTW: @WestLangley What's the problem with video textures and your code snippet? |
Video distortion fixed in #11994 |
Cool! 👍 |
This PR cleans up
misc_controls_deviceorientation.html
and explains the following line of code in all relevant examples.I was frequently asked why this operation is performed so i've added a comment in the code.