浏览代码

Merge pull request #18057 from elalish/clearcoatTypo

fixed clearcoat typo
Mr.doob 5 年之前
父节点
当前提交
7b66b3c39e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js

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

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