提交 216cb336 编写于 作者: W Wilt 提交者: Mr.doob

Changed light positions to Object3D.DefaultUp (#9306)

上级 ce9022d5
...@@ -9,7 +9,7 @@ THREE.DirectionalLight = function ( color, intensity ) { ...@@ -9,7 +9,7 @@ THREE.DirectionalLight = function ( color, intensity ) {
this.type = 'DirectionalLight'; this.type = 'DirectionalLight';
this.position.set( 0, 1, 0 ); this.position.copy( THREE.Object3D.DefaultUp );
this.updateMatrix(); this.updateMatrix();
this.target = new THREE.Object3D(); this.target = new THREE.Object3D();
......
...@@ -10,7 +10,7 @@ THREE.HemisphereLight = function ( skyColor, groundColor, intensity ) { ...@@ -10,7 +10,7 @@ THREE.HemisphereLight = function ( skyColor, groundColor, intensity ) {
this.castShadow = undefined; this.castShadow = undefined;
this.position.set( 0, 1, 0 ); this.position.copy( THREE.Object3D.DefaultUp );
this.updateMatrix(); this.updateMatrix();
this.groundColor = new THREE.Color( groundColor ); this.groundColor = new THREE.Color( groundColor );
......
...@@ -8,7 +8,7 @@ THREE.SpotLight = function ( color, intensity, distance, angle, penumbra, decay ...@@ -8,7 +8,7 @@ THREE.SpotLight = function ( color, intensity, distance, angle, penumbra, decay
this.type = 'SpotLight'; this.type = 'SpotLight';
this.position.set( 0, 1, 0 ); this.position.copy( THREE.Object3D.DefaultUp );
this.updateMatrix(); this.updateMatrix();
this.target = new THREE.Object3D(); this.target = new THREE.Object3D();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册