three_dart
three_dart copied to clipboard
Flip Y in web (TextureLoader)
Setting TextureLoader.flipY
had an effect in mobile apps, but had no effect web apps.
Also, texture loader defaults to flipY = false, while textures defaults to flipY = true. So I was having flipped images in web compared to what they looked like on iOS and android. So when I noticed flipY in the texture loader I tried that but it had no effect.
I would recommend removing flipY from TextureLoader
- and recommend looking into a way to flip images on the GPU step rather than the image loading step. From what I can tell, the GPU step is how threeJS does it, and when it's in the loading step it's confusing that in some situations it flips while loading and others the flipping happens at a later step (web vs. mobile).