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

XRHand*Model: Add cast/receive shadow.

上级 7cb0a77f
......@@ -17,7 +17,11 @@ class XRHandOculusMeshModel {
this.handModel.add( object );
// Hack because of the scale of the skinnedmesh
object.scale.setScalar( 0.01 );
object.getObjectByProperty( "type", "SkinnedMesh" ).frustumCulled = false;
const mesh = object.getObjectByProperty( "type", "SkinnedMesh" );
mesh.frustumCulled = false;
mesh.castShadow = true;
mesh.receiveShadow = true;
const bonesMapping = [
'b_%_wrist', // XRHand.WRIST,
......
......@@ -45,6 +45,7 @@ class XRHandPrimitiveModel {
var cube = new Mesh( geometry, tipIndexes.indexOf( i ) !== - 1 ? tipMaterial : jointMaterial );
cube.castShadow = true;
cube.receiveShadow = true;
this.handMesh.add( cube );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册