Browse Source

Fixed shader bug introduced in previous commit.

alteredq 13 years ago
parent
commit
a46acbdaf1
3 changed files with 4 additions and 4 deletions
  1. 1 1
      build/Three.js
  2. 1 1
      build/custom/ThreeWebGL.js
  3. 2 2
      src/renderers/WebGLShaders.js

File diff suppressed because it is too large
+ 1 - 1
build/Three.js


File diff suppressed because it is too large
+ 1 - 1
build/custom/ThreeWebGL.js


+ 2 - 2
src/renderers/WebGLShaders.js

@@ -287,10 +287,10 @@ THREE.ShaderChunk = {
 
 		"vLightWeighting = vec3( 0.0 );",
 
-		"#if MAX_DIR_LIGHTS > 0",
-
 		"transformedNormal = normalize( transformedNormal );",
 
+		"#if MAX_DIR_LIGHTS > 0",
+
 		"for( int i = 0; i < MAX_DIR_LIGHTS; i ++ ) {",
 
 			"vec4 lDirection = viewMatrix * vec4( directionalLightDirection[ i ], 0.0 );",

Some files were not shown because too many files changed in this diff