Parcourir la source

Added distance to light

Jhonny Göransson il y a 14 ans
Parent
commit
016ab44d7c
2 fichiers modifiés avec 142 ajouts et 141 suppressions
  1. 140 140
      build/Three.js
  2. 2 1
      src/extras/io/SceneLoader.js

Fichier diff supprimé car celui-ci est trop grand
+ 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] );
 
 				}

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff