Open xeolabs opened 5 years ago
When I use "pbrMetallicRoughness" in my model.gltf, it shows this following error:
Cannot set property encoding of #
So I'm wondering that my issue is relevant of your notification. Can you give me some advice to fix it?
Textures loaded by GLTFModel should be sRGB when they are for PBR materials, and GLTFModel attempts to set the
encoding
property as such, however that property is read only. Therefore, they are alwayslinear
.https://github.com/xeolabs/xeogl/blob/master/examples/js/models/glTFModel.js#L876