Skip to content

Commit

Permalink
Merge pull request #2022 from elalish/implementationBRDF
Browse files Browse the repository at this point in the history
removed duplicate (1 - f0) in implementation notes
  • Loading branch information
emackey authored Sep 13, 2021
2 parents c6a5521 + 5de957b commit 673825a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions specification/2.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4071,10 +4071,9 @@ 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 * (1 - dielectricSpecular), black, metallic)
c_diff = lerp(baseColor.rgb, black, metallic)
f0 = lerp(0.04, baseColor.rgb, metallic)
α = roughness^2
Expand Down

0 comments on commit 673825a

Please sign in to comment.