Explorar o código

Editor: Changed default position for lights.

Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
54340acc00
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      editor/js/Menubar.Add.js

+ 3 - 3
editor/js/Menubar.Add.js

@@ -284,7 +284,7 @@ Menubar.Add = function ( editor ) {
 		light.name = 'SpotLight ' + ( ++ lightCount );
 		light.target.name = 'SpotLight ' + ( lightCount ) + ' Target';
 
-		light.position.set( 0, 1, 0 ).multiplyScalar( 200 );
+		light.position.set( 0.5, 1, 0.75 ).multiplyScalar( 200 );
 
 		editor.addObject( light );
 		editor.select( light );
@@ -306,7 +306,7 @@ Menubar.Add = function ( editor ) {
 		light.name = 'DirectionalLight ' + ( ++ lightCount );
 		light.target.name = 'DirectionalLight ' + ( lightCount ) + ' Target';
 
-		light.position.set( 1, 1, 1 ).multiplyScalar( 200 );
+		light.position.set( 0.5, 1, 0.75 ).multiplyScalar( 200 );
 
 		editor.addObject( light );
 		editor.select( light );
@@ -328,7 +328,7 @@ Menubar.Add = function ( editor ) {
 		var light = new THREE.HemisphereLight( skyColor, groundColor, intensity );
 		light.name = 'HemisphereLight ' + ( ++ lightCount );
 
-		light.position.set( 1, 1, 1 ).multiplyScalar( 200 );
+		light.position.set( 0.5, 1, 0.75 ).multiplyScalar( 200 );
 
 		editor.addObject( light );
 		editor.select( light );