Browse Source

Added distance to light

Jhonny Göransson 14 years ago
parent
commit
016ab44d7c
2 changed files with 142 additions and 141 deletions
  1. 140 140
      build/Three.js
  2. 2 1
      src/extras/io/SceneLoader.js

File diff suppressed because it is too large
+ 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] );
 
 				}

Some files were not shown because too many files changed in this diff