소스 검색

Editor: Removed ambient color on object creation.
Ugh! And there I was thinking that UI.Color had a bug.

Mr.doob 12 년 전
부모
커밋
09ca234777
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      editor/index.html
  2. 1 1
      editor/js/ui/Sidebar.Material.js

+ 1 - 1
editor/index.html

@@ -341,7 +341,7 @@
 			var geometry = new THREE.SphereGeometry( 75, 25, 15 );
 
 			var color = Math.random() * 0xffffff;
-			var material = new THREE.MeshLambertMaterial( { color: color, ambient: color } );
+			var material = new THREE.MeshLambertMaterial( { color: color } );
 
 			var mesh = new THREE.Mesh( geometry, material );
 			mesh.name = "Sphere";

+ 1 - 1
editor/js/ui/Sidebar.Material.js

@@ -134,7 +134,7 @@ Sidebar.Material = function ( signals ) {
 	var materialBumpMapRow = new UI.Panel();
 	var materialBumpMapEnabled = new UI.Checkbox( 'absolute' ).setValue( false ).setLeft( '100px' ).onChange( update );
 	var materialBumpMap = new UI.Texture( 'absolute' ).setLeft( '170px' ).setColor( '#444' ).onChange( update );
-	var materialBumpScale = new UI.Number( 'absolute' ).setValue( 1 ).setLeft( '130px' ).setWidth( '30px' ).setColor( '#444' ).onChange( update );
+	var materialBumpScale = new UI.Number( 'absolute' ).setValue( 1 ).setLeft( '130px' ).setWidth( '30px' ).onChange( update );
 
 	materialBumpMapRow.add( new UI.Text().setValue( 'Bump Map' ).setColor( '#666' ) );
 	materialBumpMapRow.add( materialBumpMapEnabled );