From 9ed3985200382d4ba211ffab10f2ebf3f132905a Mon Sep 17 00:00:00 2001 From: Emmett Lalish Date: Fri, 3 Sep 2021 08:35:42 -0700 Subject: [PATCH 1/2] removed duplicate 1-f0 --- specification/2.0/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/2.0/README.md b/specification/2.0/README.md index a5d553c1ff..c9686833e9 100644 --- a/specification/2.0/README.md +++ b/specification/2.0/README.md @@ -4074,7 +4074,7 @@ Taking advantage of the fact that `roughness` is shared between metal and dielec const dielectricSpecular = 0.04 const black = 0 -c_diff = lerp(baseColor.rgb * (1 - dielectricSpecular), black, metallic) +c_diff = lerp(baseColor.rgb, black, metallic) f0 = lerp(0.04, baseColor.rgb, metallic) α = roughness^2 From 5de957b8b0a13c147c90d4ff569250440931872f Mon Sep 17 00:00:00 2001 From: Emmett Lalish Date: Tue, 7 Sep 2021 09:17:31 -0700 Subject: [PATCH 2/2] remove const --- specification/2.0/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/2.0/README.md b/specification/2.0/README.md index c9686833e9..63029af060 100644 --- a/specification/2.0/README.md +++ b/specification/2.0/README.md @@ -4071,7 +4071,6 @@ material = mix(dielectric_brdf, metal_brdf, metallic) Taking advantage of the fact that `roughness` is shared between metal and dielectric and that the Schlick Fresnel is used, we can simplify the mix and arrive at the final BRDF for the material: ``` -const dielectricSpecular = 0.04 const black = 0 c_diff = lerp(baseColor.rgb, black, metallic)