Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emissive color resets to default #312

Open
radim-nedved opened this issue Sep 20, 2024 · 1 comment
Open

Emissive color resets to default #312

radim-nedved opened this issue Sep 20, 2024 · 1 comment

Comments

@radim-nedved
Copy link

When I include both the Ke (emissive color) property and map_Ke (emissive texture) in my .mtl file, the Ke color value resets to white (1 1 1) after conversion. However, if I only use the Ke property without map_Ke, the emissive color remains as expected.

@javagl
Copy link

javagl commented Sep 20, 2024

This seems to be hard-wired at

emissiveFactor = [1.0, 1.0, 1.0];
, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants