-
Notifications
You must be signed in to change notification settings - Fork 60
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
Set vertex colour attr correctly with material system #1431
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
The reason why it's too dark is because the overbright code is buggy, something that will be fixed with #1406. So actually getting it too dark is what is expected.
I figured out why implicitly vertex lit surfaces were unaffected. It's because the Added a commit commenting out a part of the code that doesn't really work. |
0fafc55
to
96b083a
Compare
What is “implicit vertex lighting”? |
I mean when the shader does not have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Cherry-picked from #1406.
Before:
After:
I think this is still not complete actually, as there are also implicitly vertex lit surfaces that don't have
CGEN_VERTEX
set. Vertex lighting can be automatically selected when there is no lightmap. The computer console in Vega is an example. It uses an image loaded as shader.