Skip to content

Commit

Permalink
Merge pull request #15565 from donmccurdy/bug-spotlight-position
Browse files Browse the repository at this point in the history
GLTFLoader: Reset spotlight default position.
  • Loading branch information
mrdoob authored Jan 25, 2019
2 parents d2ea94f + 4a44e25 commit ed5d702
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/js/loaders/GLTFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ THREE.GLTFLoader = ( function () {

}

// Some lights (e.g. spot) default to a position other than the origin. Reset the position
// here, because node-level parsing will only override position if explicitly specified.
lightNode.position.set( 0, 0, 0 );

lightNode.decay = 2;

if ( lightDef.intensity !== undefined ) lightNode.intensity = lightDef.intensity;
Expand Down

0 comments on commit ed5d702

Please sign in to comment.