浏览代码

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

文件差异内容过多而无法显示
+ 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] );
 
 				}

部分文件因为文件数量过多而无法显示