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

Clear coat fresnel fix #4657

Merged
merged 4 commits into from Sep 22, 2022
Merged

Clear coat fresnel fix #4657

merged 4 commits into from Sep 22, 2022

Conversation

GSterbrant
Copy link
Contributor

@GSterbrant GSterbrant commented Sep 22, 2022

Description

Fixes issues related to clear coat and specularity factor. Clear coat should use a white fresnel and weight that against the other layers.

Specularity factor should only be used in case specular color with metalness is enabled.

Actually, we supply the reflectivity factor twice and it's saved in both ccReflections.a and ccSpecularity, as the material_clearCoat and material_clearCoatReflectivity is the same value, so in the combine we can get away with just using ccSpecularity.

Fixes #4459.

@GSterbrant GSterbrant added bug area: graphics Graphics related issue labels Sep 22, 2022
@GSterbrant GSterbrant self-assigned this Sep 22, 2022
@GSterbrant GSterbrant merged commit 6af5ed1 into main Sep 22, 2022
@GSterbrant GSterbrant deleted the gsterbrant_clearcoat_work branch September 22, 2022 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clearcoat isn't energy conservative
3 participants