瀏覽代碼

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] );
 
 				}

部分文件因文件數量過多而無法顯示