Skip to content

Commit 216cb33

Browse files
Wiltmrdoob
authored andcommitted
Changed light positions to Object3D.DefaultUp (mrdoob#9306)
1 parent ce9022d commit 216cb33

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/lights/DirectionalLight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ THREE.DirectionalLight = function ( color, intensity ) {
99

1010
this.type = 'DirectionalLight';
1111

12-
this.position.set( 0, 1, 0 );
12+
this.position.copy( THREE.Object3D.DefaultUp );
1313
this.updateMatrix();
1414

1515
this.target = new THREE.Object3D();

src/lights/HemisphereLight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ THREE.HemisphereLight = function ( skyColor, groundColor, intensity ) {
1010

1111
this.castShadow = undefined;
1212

13-
this.position.set( 0, 1, 0 );
13+
this.position.copy( THREE.Object3D.DefaultUp );
1414
this.updateMatrix();
1515

1616
this.groundColor = new THREE.Color( groundColor );

src/lights/SpotLight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ THREE.SpotLight = function ( color, intensity, distance, angle, penumbra, decay
88

99
this.type = 'SpotLight';
1010

11-
this.position.set( 0, 1, 0 );
11+
this.position.copy( THREE.Object3D.DefaultUp );
1212
this.updateMatrix();
1313

1414
this.target = new THREE.Object3D();

0 commit comments

Comments
 (0)