提交 70dbf6d3 编写于 作者: M Mr.doob

Fixed canvas birds example.

上级 a93701ac
......@@ -359,7 +359,6 @@
bird = birds[ i ] = new THREE.Mesh( new Bird(), new THREE.MeshBasicMaterial( { color:Math.random() * 0xffffff, side: THREE.DoubleSide } ) );
bird.phase = Math.floor( Math.random() * 62.83 );
bird.position = boids[ i ].position;
scene.add( bird );
......@@ -429,6 +428,7 @@
boid.run( boids );
bird = birds[ i ];
bird.position.copy( boids[ i ].position );
color = bird.material.color;
color.r = color.g = color.b = ( 500 - bird.position.z ) / 1000;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册