提交 09ca2347 编写于 作者: M Mr.doob

Editor: Removed ambient color on object creation.

Ugh! And there I was thinking that UI.Color had a bug.
上级 872bf279
......@@ -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";
......
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册