After upgrading from glTFast 6.16.1 to 6.17.0 (and newer versions), some imported GLB models render with a vertically flipped Base Color texture.
The issue only occurs on materials that have an emissive texture assigned.
The emissive texture itself renders correctly.
Expected behavior
The Base Color texture should render correctly, as it does in glTFast 6.16.1.
Actual behavior
The imported material has:
baseColorTexture_ST = (1, -1, 0, 1)
emissiveTexture_ST = (1, 1, 0, 0)
Because baseColorTexture_ST.y is -1, the Base Color texture appears vertically flipped.
Changing baseColorTexture_ST manually to:
(1, 1, 0, 0)
(or simply changing the Y scale from -1 to 1) immediately fixes the rendering.
Observations
-
glTFast 6.16.1: Correct rendering
-
glTFast 6.17.0+: Base Color texture flipped
-
Only materials with an emissive texture are affected.
-
Materials without an emissive texture are imported correctly.
-
The emissive texture itself renders correctly.
-
Only the Base Color texture receives the incorrect UV transform.
Steps to reproduce
-
Import a GLB containing a material with:
- Base Color texture
- Emissive texture
-
Load it using glTFast 6.17.0+.
-
Inspect the generated material.
-
Observe that baseColorTexture_ST is (1, -1, 0, 1).
-
Change baseColorTexture_ST.y from -1 to 1.
-
The Base Color texture renders correctly.
After upgrading from glTFast 6.16.1 to 6.17.0 (and newer versions), some imported GLB models render with a vertically flipped Base Color texture.
The issue only occurs on materials that have an emissive texture assigned.
The emissive texture itself renders correctly.
Expected behavior
The Base Color texture should render correctly, as it does in glTFast 6.16.1.
Actual behavior
The imported material has:
baseColorTexture_ST = (1, -1, 0, 1)
emissiveTexture_ST = (1, 1, 0, 0)
Because baseColorTexture_ST.y is -1, the Base Color texture appears vertically flipped.
Changing baseColorTexture_ST manually to:
(1, 1, 0, 0)
(or simply changing the Y scale from -1 to 1) immediately fixes the rendering.
Observations
Steps to reproduce