Parcourir la source

Fixed shader bug introduced in previous commit.

alteredq il y a 13 ans
Parent
commit
a46acbdaf1
3 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 1
      build/Three.js
  2. 1 1
      build/custom/ThreeWebGL.js
  3. 2 2
      src/renderers/WebGLShaders.js

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
build/Three.js


Fichier diff supprimé car celui-ci est trop grand
+ 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 );",

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff