Skip to content

Commit

Permalink
XRHandPrimitiveModel: Disable frustum culling.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed May 31, 2023
1 parent 939e458 commit 77c2789
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/jsm/webxr/XRHandPrimitiveModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class XRHandPrimitiveModel {
const material = new MeshStandardMaterial();

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

0 comments on commit 77c2789

Please sign in to comment.