Explorar o código

Update webgl_materials_cars.html

gero3 %!s(int64=7) %!d(string=hai) anos
pai
achega
324332f40f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/webgl_materials_cars.html

+ 1 - 1
examples/webgl_materials_cars.html

@@ -118,7 +118,7 @@
 				hemiLight.position.set( 0, 1, 0 );
 				scene.add( hemiLight );
 
-				shadowLight  = new THREE.DirectionalLight( 0xffffee, 0.1 );
+				var shadowLight  = new THREE.DirectionalLight( 0xffffee, 0.1 );
 				shadowLight.position.set( -1.5, 1.25, -1.5 );
 				shadowLight.castShadow = true;
 				shadowLight.shadow.width = 512;