KhronosGroup / KhronosGroup/glTF-Sample-Viewer

Clearcoat renders Fresnel reflectance on both coat and base layer.

Open
#546 5 comments 0 reactions 2 assignees Claimed by @UX3D-kanzler View on GitHub
bug needs discussion
Dominant language
JavaScript
Stars
1.5k
Forks
264
Avg merge
5h 49m
Merged PRs (30d)
1

Description

As clearcoat is an additional layer (with IOR 1.5) that light interacts with prior to interaction with the base-layer, there shall be no Fresnel reflection in the base-layer (unless material uses IOR extension).

The below image is from `ClearCoatTest.glb` in the sample asset repo:
![image](https://github.com/KhronosGroup/glTF-Sample-Viewer/assets/3063192/547d212f-e141-489a-af9d-58aa9bd9e78f)

Compare 'Base layer' and 'Coated' columns and you will see that the reflection from the 'Base layer' are still present when using clearcoat.

Instead it should look like this - here you can see that the reflection from the 'Base layer' is not present in the coated versions.

![image](https://github.com/KhronosGroup/glTF-Sample-Viewer/assets/3063192/af7df7a2-2c80-4dae-bc31-c316367d694f)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.