Pārlūkot izejas kodu

Merge pull request #18057 from elalish/clearcoatTypo

fixed clearcoat typo
Mr.doob 5 gadi atpakaļ
vecāks
revīzija
7b66b3c39e

+ 1 - 1
src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js

@@ -22,7 +22,7 @@ material.specularRoughness = min( material.specularRoughness, 1.0 );
 #ifdef CLEARCOAT
 
 	material.clearcoat = saturate( clearcoat ); // Burley clearcoat model
-	material.clearcoatRoughness = max( roughnessFactor, 0.0525 );
+	material.clearcoatRoughness = max( clearcoatRoughness, 0.0525 );
 	material.clearcoatRoughness += geometryRoughness;
 	material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );