Skip to content

Commit

Permalink
Removed duplicate 1-max(F0.rgb) (KhronosGroup#2091)
Browse files Browse the repository at this point in the history
  • Loading branch information
proog128 authored Nov 5, 2021
1 parent a802e15 commit 83200d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/2.0/Khronos/KHR_materials_specular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Note that in `dielectricSpecularF0` we clamp the product of specular color and f
In the diffuse component we have to account for the fact that `F` is now an RGB value.

```
c_diff = lerp(baseColor.rgb * (1 - max(F0.r, F0.g, F0.b)), black, metallic)
c_diff = lerp(baseColor.rgb, black, metallic)
diffuse = c_diff / PI
f_diffuse = (1 - max(F.r, F.g, F.b)) * diffuse
```
Expand Down

0 comments on commit 83200d2

Please sign in to comment.