Open radim-nedved opened 1 month ago
This seems to be hard-wired at https://github.com/CesiumGS/obj2gltf/blob/ce0c36e28193205f6465a22c03f554fe22597f46/lib/loadMtl.js#L911 , but I don't see an obvious reason why this should be happening. I'd say that whenever a value is not given, then it should have its default (i.e. preferably simply be omitted from the glTF material definition), and the presence of textures should not affect the respective factors.
When I include both the
Ke
(emissive color) property andmap_Ke
(emissive texture) in my .mtl file, theKe
color value resets to white (1 1 1) after conversion. However, if I only use theKe
property withoutmap_Ke
, the emissive color remains as expected.