Pārlūkot izejas kodu

XRHandPrimitiveModel: Disable frustum culling.

Mr.doob 2 gadi atpakaļ
vecāks
revīzija
77c27896d3
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      examples/jsm/webxr/XRHandPrimitiveModel.js

+ 1 - 0
examples/jsm/webxr/XRHandPrimitiveModel.js

@@ -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;