浏览代码

ShaderChunk: Fixed define collision. See #17442

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

+ 2 - 2
src/renderers/shaders/ShaderChunk/common.glsl.js

@@ -111,9 +111,9 @@ float linearToRelativeLuminance( const in vec3 color ) {
 
 
 }
 }
 
 
-bool isPerspectiveMatrix( mat4 projectionMatrix ) {
+bool isPerspectiveMatrix( mat4 m ) {
 
 
-  return projectionMatrix[ 2 ][ 3 ] == - 1.0;
+  return m[ 2 ][ 3 ] == - 1.0;
 
 
 }
 }
 `;
 `;