index.wxml 1.1 KB

12345678910111213141516171819
  1. <xr-scene id="xr-scene" bind:ready="handleReady">
  2. <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
  3. <xr-asset-load type="gltf" asset-id="home" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/pokemon_loreleis_arena/index.glb" />
  4. <xr-asset-load type="gltf" asset-id="baibianguai" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/baibianguai/index.glb" />
  5. </xr-assets>
  6. <xr-node>
  7. <xr-node node-id="target" position="0 1 0" />
  8. <xr-gltf position="0 2.4 0" scale="0.03 0.03 0.03" model="baibianguai" cast-shadow anim-autoplay></xr-gltf>
  9. <xr-gltf position="0 0 0" scale="100 100 100" model="home" receive-shadow anim-autoplay></xr-gltf>
  10. <xr-camera
  11. id="camera" node-id="camera" position="0 4 6" clear-color="0.925 0.925 0.925 1"
  12. target="target" background="default" camera-orbit-control=""
  13. ></xr-camera>
  14. </xr-node>
  15. <xr-node node-id="lights">
  16. <xr-light type="ambient" color="1 1 1" intensity="1" />
  17. <xr-light type="directional" rotation="40 180 0" color="1 1 1" intensity="2" cast-shadow />
  18. </xr-node>
  19. </xr-scene>