-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add switch to enable/disable specular color with metalness workflow #4428
Conversation
I added tint as to not confuse it with enabling/disabling specular with metalness workflow.
Decided to call it useMetalnessSpecularTint as to not make it sound like it's used to enable/disable specular effects with metalness. |
Co-authored-by: Donovan Hutchence <slimbuck7@gmail.com>
…hey were related but are actually separate.
…om:playcanvas/engine into gsterbrant_metalness_specular_color_switch
Co-authored-by: Donovan Hutchence <slimbuck7@gmail.com>
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.
Looks great, should work well.
Please wait for @slimbuck 's review as well.
Because we have specular maps which will be used if assigned, we need some way to turn off the specular colours on the shader level instead of just controlling the tint. Changed name of the useMetalnessSpecularTint to useMetalnessSpecularColor.
…calculation in the shader.
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.
approving with some suggestions
Description
The metalness workflow recently exposed specular color modulation for F0 reflections, however it caused some issues related to default specular color. This PR addresses this issue by adding a switch which explicitly enables specular tinting with metalness, forcing users who want this feature to first turn the flag on, and then assign specular color values.
Relates to #4423 #4386 and #4419.