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

KHR_materials_clearcoat Fresnel should not influence material emission #2396

Open
droettger opened this issue May 7, 2024 · 0 comments
Open

Comments

@droettger
Copy link

The clearcoat layer is on top of emission in the layering stack. Consequently, the emission is darkened by the Fresnel term.
coated_emission = emission * (0.04 + (1 - 0.04) * (1 - NdotV)^5)

Thought experiment:
You have an emissive glass sphere with IOR 1.5 and add an infinitely thin white clearcoat with IOR 1.5 on top of it.
What changes? Nothing. The resulting image should be exactly the same.

There is no vacuum to clearcoat boundary beneath the clearcoat surface, so any emitted light from that surface should not be affected at all by the clearcoat Fresnel, no matter what the base material is.

The clearcoat would potentially just add reflections from other lights with the Fresnel between the surrounding medium (usually vacuum) and the hardcoded IOR of 1.5 of the clearcoat. Only the weighting of the base material BSDF under the clearcoat layer is affected by that Fresnel.
(If the KHR_materials_clearcoat had specified a color, that would affect the emission, but as long as the clearcoat is white and infinitely thin, it should not block light emissions in any way.

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

1 participant