index.wxml 1.4 KB

12345678910111213141516171819202122232425
  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="gltf-ballon-origin" src="https://webar.hereto.cn/asset/fe/ast-show/ballon-anim.glb" />
  4. <xr-asset-load type="gltf" asset-id="gltf-ballon" src="https://webar.hereto.cn/asset/fe/ast-show/ballon-anim.glb" />
  5. <xr-asset-load type="gltf" asset-id="gltf-ballon-blend" src="https://webar.hereto.cn/asset/fe/ast-show/ballon-anim.glb" />
  6. </xr-assets>
  7. <xr-env env-data="xr-frame-team-workspace-day2" />
  8. <xr-node>
  9. <xr-node node-id="camera-target" position="0 0 0"></xr-node>
  10. <xr-gltf position="-0.8 0 0" rotation="0 0 0" scale="1.2 1.2 1.2" model="gltf-ballon-origin"></xr-gltf>
  11. <xr-gltf id="ballon" node-id="gltf-ballon" position="0.8 0 0" rotation="0 0 0" scale="1.2 1.2 1.2" model="gltf-ballon"></xr-gltf>
  12. <xr-gltf id="ballonBlend" node-id="gltf-ballon-blend" position="0 0 -0.8" rotation="0 0 0" scale="1.2 1.2 1.2" model="gltf-ballon-blend"></xr-gltf>
  13. <xr-camera
  14. id="camera" node-id="camera" position="2 2 4" clear-color="0.925 0.925 0.925 1"
  15. target="camera-target" background="skybox"
  16. camera-orbit-control=""
  17. ></xr-camera>
  18. </xr-node>
  19. <xr-node node-id="lights">
  20. <xr-light type="ambient" color="1 1 1" intensity="0.6" />
  21. <xr-light type="directional" rotation="20 120 0" color="1 1 1" intensity="2"/>
  22. </xr-node>
  23. </xr-scene>