浏览代码

Using random colors in postprocessing2 example.

Mr.doob 11 年之前
父节点
当前提交
15d51a59a1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/webgl_postprocessing2.html

+ 2 - 2
examples/webgl_postprocessing2.html

@@ -82,10 +82,10 @@
 				scene.add( object );
 
 				var geometry = new THREE.SphereGeometry( 1, 4, 4 );
-				var material = new THREE.MeshPhongMaterial( { color: 0xffffff, shading: THREE.FlatShading } );
 
 				for ( var i = 0; i < 100; i ++ ) {
-					// material = new THREE.MeshPhongMaterial( { color: 0xffffff * Math.random(), shading: THREE.FlatShading } );
+					
+					var material = new THREE.MeshPhongMaterial( { color: 0xffffff * Math.random(), shading: THREE.FlatShading } );
 
 					var mesh = new THREE.Mesh( geometry, material );
 					mesh.position.set( Math.random() - 0.5, Math.random() - 0.5, Math.random() - 0.5 ).normalize();