Kaynağa Gözat

Update webgl_materials_cars.html

gero3 6 yıl önce
ebeveyn
işleme
324332f40f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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;