-
Notifications
You must be signed in to change notification settings - Fork 100
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
Why is the texture in the example flipped upside down? #124
Comments
I mean, the example at ThreeJS is correct, the cube texture is correct. |
I think its a bug:
|
Hi, I experience the same. In the Texture class it seems that .flipY by default is true. In three.js this is false. In my case it took some time and bug hunting, before I realized this. The workaround is a simple one liner. |
Hi, why is the texture in this example flipped upside down? web_gl_geometry_cube
https://threedart.github.io/three.dart/example/web_gl_geometry_cube/web_gl_geometry_cube.html
https://github.com/threeDart/three.dart/blob/master/example/web_gl_geometry_cube/web_gl_geometry_cube.dart
If you comment out the rotation in the animate function, you can see the texture is exactly flipped upside down.
//cube.rotation.x += 0.005;
//cube.rotation.y += 0.01;
Is this a bug? if not, can you please explain why it is the case and how to fix?
The text was updated successfully, but these errors were encountered: