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

Removed needed MultiMaterial from drawcalls example.

Mr.doob 10 жил өмнө
parent
commit
b67a62c189

+ 2 - 2
examples/webgl_buffergeometry_drawcalls.html

@@ -150,7 +150,7 @@
 				particles.addAttribute( 'position', new THREE.BufferAttribute( particlePositions, 3 ).setDynamic( true ) );
 				particles.addAttribute( 'position', new THREE.BufferAttribute( particlePositions, 3 ).setDynamic( true ) );
 
 
 				// create the particle system
 				// create the particle system
-				pointCloud = new THREE.PointCloud( particles, new THREE.MultiMaterial( [ pMaterial ] ) );
+				pointCloud = new THREE.PointCloud( particles, pMaterial );
 				group.add( pointCloud );
 				group.add( pointCloud );
 
 
 				var geometry = new THREE.BufferGeometry();
 				var geometry = new THREE.BufferGeometry();
@@ -168,7 +168,7 @@
 					transparent: true
 					transparent: true
 				} );
 				} );
 
 
-				linesMesh = new THREE.LineSegments( geometry, new THREE.MultiMaterial( [ material ] ) );
+				linesMesh = new THREE.LineSegments( geometry, material );
 				group.add( linesMesh );
 				group.add( linesMesh );
 
 
 				//
 				//