<xr-scene wx:if="{{type == 'img'}}" render-system="alpha:true" bind:ready="handleReady">
<xr-node visible="{{visible}}">
<xr-light type="ambient" color="1 1 1" intensity="3" />
<xr-light type="spot" color="1 1 1" intensity="5" position="3 3 3" range="3" />
<xr-assets bind:loaded="handleAssetsImg">
<xr-asset-load
type="cube-texture"
asset-id="img"
src="/static/img/"
options="faces: test1.png test1.png test1.png test1.png test.jpg test.jpg,wrapU:1,wrapV:2"
/>
<xr-asset-material asset-id="standard-mat" effect="standard" />
</xr-assets>
<xr-mesh
id="img"
node-id="img"
geometry="cube"
material="standard-mat"
uniforms="u_baseColorMap: cube-img"
cube-shape="autoFit:true"
scale="4 3 1"
></xr-mesh>
</xr-node>
<xr-camera id="camera" clear-color="0 0 0 0" position="3 2 8" target="img" camera-orbit-control/>
</xr-scene>
渲染出来空白的
这里没人回。可以进微信群里问下,应该有人遇到过,不过人太多了,只能+wx:wdmwjm ,邀请进