Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Invert vScale of compressed textures when invertY is set and invertY … #5545
…of ktx textures as they are inverted in the file
because invertY triggers inversion with UNPACK_FLIP_Y_WEBGL which is not supported by compressed textures so vScale inversion was needed. I originally did this for all compressed textures (like dds) but it broke DDS as the UNPACK_FLIP_Y_WEBGL doesn't work at the start but then works when UploadDDSLevels calls _uploadDataToTextureDirectly.