Skip to content

Commit

Permalink
XRHandPrimitiveModel: Fixed bad copy paste.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Apr 23, 2021
1 parent 4edc1a0 commit c179013
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/jsm/webxr/XRHandPrimitiveModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
DynamicDrawUsage,
SphereGeometry,
BoxGeometry,
MeshStandardMaterial,
Expand Down Expand Up @@ -30,7 +31,7 @@ class XRHandPrimitiveModel {
const material = new MeshStandardMaterial();

this.handMesh = new InstancedMesh( geometry, material, 30 );
this.handMesh.instanceMatrix.setUsage( THREE.DynamicDrawUsage ); // will be updated every frame
this.handMesh.instanceMatrix.setUsage( DynamicDrawUsage ); // will be updated every frame
this.handMesh.castShadow = true;
this.handMesh.receiveShadow = true;
this.handModel.add( this.handMesh );
Expand Down

0 comments on commit c179013

Please sign in to comment.