|
@@ -244,6 +244,8 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
case 'directional':
|
|
|
lightNode = new THREE.DirectionalLight( color );
|
|
|
+ lightNode.target.position.set( 0, 0, 1 );
|
|
|
+ lightNode.add( lightNode.target );
|
|
|
break;
|
|
|
|
|
|
case 'point':
|
|
@@ -258,6 +260,8 @@ THREE.GLTFLoader = ( function () {
|
|
|
var outerConeAngle = spot.outerConeAngle !== undefined ? spot.outerConeAngle : Math.PI / 4.0;
|
|
|
lightNode.angle = outerConeAngle;
|
|
|
lightNode.penumbra = 1.0 - innerConeAngle / outerConeAngle;
|
|
|
+ lightNode.target.position.set( 0, 0, 1 );
|
|
|
+ lightNode.add( lightNode.target );
|
|
|
break;
|
|
|
|
|
|
case 'ambient':
|