Browse Source

ShaderChunk: Fixed define collision. See #17442

Mr.doob 5 năm trước cách đây
mục cha
commit
cded5c085f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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;
 
 }
 `;