Prechádzať zdrojové kódy

Examples: Removed redundant code from physics_cannon_instancing.

Mr.doob 5 rokov pred
rodič
commit
2199be415c
1 zmenil súbory, kde vykonal 0 pridanie a 1 odobranie
  1. 0 1
      examples/physics_cannon_instancing.html

+ 0 - 1
examples/physics_cannon_instancing.html

@@ -61,7 +61,6 @@
 				var geometry = new THREE.BoxBufferGeometry( 0.1, 0.1, 0.1 );
 				var material = new THREE.MeshLambertMaterial();
 				var mesh = new THREE.InstancedMesh( geometry, material, 200 );
-				mesh.instanceMatrix.setUsage( THREE.DynamicDrawUsage ); // will be updated every frame
 				mesh.castShadow = true;
 				mesh.receiveShadow = true;
 				scene.add( mesh );