Unstable order of p3d_TextureN slots when loading a glTF model – did I miss a cleaner fix?

There is probably a quirk in data transformations .gltf of the loader. Perhaps this was missed due to the switch to named input parameters of maps.

uniform sampler2D p3d_TextureModulate;
uniform sampler2D p3d_TextureNormal;
uniform sampler2D p3d_TextureSelector;
...

Where p3d_TextureModulate contains color data. p3d_TextureSelector contains data in channels.

1 Like