index.wxml 1.6 KB

1234567891011121314151617181920
  1. <xr-scene id="xr-scene" bind:ready="handleReady" bind:tick="handleRaf">
  2. <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
  3. <xr-asset-load type="gltf" asset-id="hikari" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/xr-frame-team/hikari-unlit.glb" />
  4. <xr-asset-load type="gltf" asset-id="roam" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/xr-frame-team/roam-unlit.glb" />
  5. <xr-asset-load type="gltf" asset-id="xinyi" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/xr-frame-team/xinyi-unlit.glb" />
  6. </xr-assets>
  7. <xr-env env-data="xr-frame-team-workspace-day" />
  8. <xr-node wx:if="{{loaded}}">
  9. <xr-gltf bind:gltf-loaded="handleModelLoaded" id="hikari" position="0 0 0" rotation="0 180 0" model="hikari" anim-autoplay="clip:Idle" capsule-shape="height:2;raduis:0.3;center:0 1 0"></xr-gltf>
  10. <xr-gltf bind:gltf-loaded="handleModelLoaded" id="roam" position="-1 0 0" rotation="0 180 0" model="roam" anim-autoplay="clip:Idle" capsule-shape="height:1;raduis:0.3;center:0 1 0"></xr-gltf>
  11. <xr-gltf bind:gltf-loaded="handleModelLoaded" id="xinyi" position="1 0 0" rotation="0 180 0" model="xinyi" anim-autoplay="clip:Idle" capsule-shape="height:1;raduis:0.3;center:0 1 0"></xr-gltf>
  12. </xr-node>
  13. <xr-node node-id="camera-target" position="0 0.8 0"></xr-node>
  14. <xr-camera
  15. id="camera" position="0 0.8 3" clear-color="0.925 0.925 0.925 1"
  16. background="skybox" target="camera-target"
  17. camera-orbit-control=""
  18. ></xr-camera>
  19. <xr-light type="ambient" color="1 1 1" intensity="0.4" />
  20. </xr-scene>