Skip to content

Commit 81a16c4

Browse files
authored
Merge pull request #1776 from KhronosGroup/clearcoat-tweak
Tweak clearcoat wording & formatting a bit.
2 parents fb6899e + 9e6bb43 commit 81a16c4

File tree

1 file changed

+3
-2
lines changed
  • extensions/2.0/Khronos/KHR_materials_clearcoat

1 file changed

+3
-2
lines changed

extensions/2.0/Khronos/KHR_materials_clearcoat/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ All implementations should use the same calculations for the BRDF inputs. Implem
6262
|**clearcoatRoughnessTexture** | [`textureInfo`](/specification/2.0/README.md#reference-textureInfo) | The clearcoat layer roughness texture. | No |
6363
|**clearcoatNormalTexture** | [`normalTextureInfo`](/specification/2.0/README.md#reference-normaltextureinfo) | The clearcoat normal map texture. | No |
6464

65-
The clearcoat formula `f_clearcoat` is computed using the specular term from the glTF 2.0 Metallic-Roughness material, defined in [Appendix B](/specification/2.0/README.md#appendix-b-brdf-implementation). Use F0 equal `0.04`, base color white `1.0, 1.0, 1.0`, metallic value `0.0`, and the clearcoat roughness value defined in this extension as follows:
65+
The clearcoat formula `f_clearcoat` is computed using the specular term from the glTF 2.0 Metallic-Roughness material, defined in [Appendix B](/specification/2.0/README.md#appendix-b-brdf-implementation). Use specular F0 equal `0.04`, base color black `0.0, 0.0, 0.0`, metallic value `0.0`, and the clearcoat roughness value defined in this extension as follows:
6666

6767
```
6868
clearcoatRoughness = clearcoatRoughnessFactor * clearcoatRoughnessTexture.g
@@ -74,7 +74,8 @@ The following abstract code describes how the base and clearcoat layers should b
7474
clearcoatBlendFactor = clearcoatTexture.r * clearcoatFactor
7575
clearcoatFresnel = fresnel(0.04, NdotV)
7676
77-
color = (f_emissive + f_diffuse + f_specular) * (1.0 - clearcoatBlendFactor * clearcoatFresnel) + f_clearcoat * clearcoatBlendFactor
77+
color = (f_emissive + f_diffuse + f_specular) * (1.0 - clearcoatBlendFactor * clearcoatFresnel) +
78+
f_clearcoat * clearcoatBlendFactor
7879
```
7980

8081
If `clearcoatFactor` (in the extension) is zero, the whole clearcoat layer is disabled.

0 commit comments

Comments
 (0)