使用xr-start自定义组件,动态加载了GLTF后,下面的Plane上没有影子?
const xrFrameSystem = wx.getXrFrameSystem();
const {rootShadow} = scene;
const faceElem = scene.createElement(xrFrameSystem.XRGLTF);
rootShadow.addChild(faceElem)
var assetInfo = {src:url, type:"gltf", assetId:"my-gltf"}
const {value: loadedModel} = await scene.assets.loadAsset(assetInfo)
const faceGLTF = faceElem.getComponent(xrFrameSystem.GLTF);
faceGLTF.setData({model: loadedModel})
page里有2个cube,然后底下有个地面。可以看到影子。
但是动态加载的GLTF没有影子。
[图片]