Skip to content

Fix white ambient in STL loader - #2563

Merged
kimkulling merged 2 commits into
assimp:masterfrom
mosra:stl-white-ambient
Jul 30, 2019
Merged

Fix white ambient in STL loader#2563
kimkulling merged 2 commits into
assimp:masterfrom
mosra:stl-white-ambient

Conversation

@mosra

@mosra mosra commented Jul 25, 2019

Copy link
Copy Markdown
Contributor

A problem that sneaked in from #1293 (f84851e) due to insufficient code review, later reported in #2059 but never fixed properly. Having a white ambient practically means all other color information is ignored and the model stays bright white no matter how you set up your lighting. Application code then has to check for this case and patch it during model import (see here, for example). Putting it back to how it was before the commit above so workarounds on app-side can be removed again.

Thanks for merging.

A problem that sneaked in from #1293 (f84851e) 
due to insufficient code review, later reported in #2059 but not fixed 
properly. Having a white ambient practically means all other color information 
is ignored and the model stays bright white no matter how you set up your 
lighting, so putting it back to how it was before the commit above.
@kimkulling
kimkulling merged commit 1c3e934 into assimp:master Jul 30, 2019
@kimkulling

Copy link
Copy Markdown
Member

OK, merged. Now the old behavious shall be there again. Thanks a lt for the contribution.

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

Successfully merging this pull request may close these issues.

2 participants