提交 c1790135 编写于 作者: M Mr.doob

XRHandPrimitiveModel: Fixed bad copy paste.

上级 4edc1a05
import {
DynamicDrawUsage,
SphereGeometry,
BoxGeometry,
MeshStandardMaterial,
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册