Browse Source

WebGLProgram: Clean up.

Mr.doob 5 years ago
parent
commit
8be2c5fe89
1 changed files with 4 additions and 4 deletions
  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' )
 			);