2
0
Mr.doob 5 жил өмнө
parent
commit
8be2c5fe89

+ 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' )
 			);