Skip to content

Commit

Permalink
ShaderChunk: Clearer sheen code. #23069 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Dec 23, 2021
1 parent 0e21088 commit 820a605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderers/shaders/ShaderLib/meshphysical.glsl.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ void main() {
#ifdef USE_SHEEN
float sheen = max3( material.sheenColor );
float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );
outgoingLight = outgoingLight * ( 1.0 - 0.157 * sheen ) + sheenSpecular;
outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;
#endif
Expand Down

0 comments on commit 820a605

Please sign in to comment.