Skip to content

Commit 820a605

Browse files
committed
ShaderChunk: Clearer sheen code. #23069 (comment)
1 parent 0e21088 commit 820a605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderers/shaders/ShaderLib/meshphysical.glsl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ void main() {
177177
178178
#ifdef USE_SHEEN
179179
180-
float sheen = max3( material.sheenColor );
180+
float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );
181181
182-
outgoingLight = outgoingLight * ( 1.0 - 0.157 * sheen ) + sheenSpecular;
182+
outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;
183183
184184
#endif
185185

0 commit comments

Comments
 (0)