Explorar o código

lights_template.glsl clean up.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
ab147eaa1d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderers/shaders/ShaderChunk/lights_template.glsl

+ 1 - 1
src/renderers/shaders/ShaderChunk/lights_template.glsl

@@ -21,7 +21,7 @@ GeometricContext geometry = GeometricContext( -vViewPosition, normalize( normal
 
 		PointLight pointLight = pointLights[ i ];
 
-		IncidentLight directLight = getPointDirectLight( pointLights[ i ], geometry );
+		IncidentLight directLight = getPointDirectLight( pointLight, geometry );
 
 		#ifdef USE_SHADOWMAP
 		if ( pointLight.shadow > - 1 ) {

粤ICP备19079148号