2
0
Эх сурвалжийг харах

Examples: Instancing example clean up.

Mr.doob 5 жил өмнө
parent
commit
8b21e90275

+ 4 - 4
examples/webgl_instancing_suzanne.html

@@ -33,16 +33,16 @@
 
 				scene = new THREE.Scene();
 
-				var material = new THREE.MeshNormalMaterial();
-				// check overdraw
-				// var material = new THREE.MeshBasicMaterial( { color: 0xff0000, opacity: 0.1, transparent: true } );
-
 				var loader = new THREE.BufferGeometryLoader();
 				loader.load( 'models/json/suzanne_buffergeometry.json', function ( geometry ) {
 
 					geometry.computeVertexNormals();
 					geometry.scale( 0.5, 0.5, 0.5 );
 
+					var material = new THREE.MeshStandardMaterial( { metalness: 0 } );
+					// check overdraw
+					// var material = new THREE.MeshBasicMaterial( { color: 0xff0000, opacity: 0.1, transparent: true } );
+
 					mesh = new THREE.InstancedMesh( geometry, material, count );
 					scene.add( mesh );