瀏覽代碼

WebGLProgram: Clean up.

Mr.doob 5 年之前
父節點
當前提交
8be2c5fe89
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/renderers/webgl/WebGLProgram.js

+ 4 - 4
src/renderers/webgl/WebGLProgram.js

@@ -718,14 +718,14 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters
 				].join( '\n' ),
 				[
 					'uniform mat4 modelViewMatrices[' + numMultiviewViews + '];',
-					'uniform mat3 normalMatrices[' + numMultiviewViews + '];',
-					'uniform mat4 viewMatrices[' + numMultiviewViews + '];',
 					'uniform mat4 projectionMatrices[' + numMultiviewViews + '];',
+					'uniform mat4 viewMatrices[' + numMultiviewViews + '];',
+					'uniform mat3 normalMatrices[' + numMultiviewViews + '];',
 
 					'#define modelViewMatrix modelViewMatrices[VIEW_ID]',
-					'#define normalMatrix normalMatrices[VIEW_ID]',
+					'#define projectionMatrix projectionMatrices[VIEW_ID]',
 					'#define viewMatrix viewMatrices[VIEW_ID]',
-					'#define projectionMatrix projectionMatrices[VIEW_ID]'
+					'#define normalMatrix normalMatrices[VIEW_ID]'
 				].join( '\n' )
 			);