Pārlūkot izejas kodu

Added distance to light

Jhonny Göransson 14 gadi atpakaļ
vecāks
revīzija
016ab44d7c
2 mainītis faili ar 142 papildinājumiem un 141 dzēšanām
  1. 140 140
      build/Three.js
  2. 2 1
      src/extras/io/SceneLoader.js

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 140 - 140
build/Three.js


+ 2 - 1
src/extras/io/SceneLoader.js

@@ -390,8 +390,9 @@ THREE.SceneLoader.prototype = {
 				} else if ( l.type == "point" ) {
 
 					p = l.position;
+					d = l.distance;
 
-					light = new THREE.PointLight( hex, intensity );
+					light = new THREE.PointLight( hex, intensity,d);
 					light.position.set( p[0], p[1], p[2] );
 
 				}

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels