瀏覽代碼

Added distance to light

Jhonny Göransson 14 年之前
父節點
當前提交
016ab44d7c
共有 2 個文件被更改,包括 142 次插入141 次删除
  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