index.wxml 1.0 KB

12345678910111213141516171819202122
  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-floating_castle" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/floating_castle.glb" />
  4. </xr-assets>
  5. <xr-env env-data="xr-frame-team-workspace-day2" />
  6. <xr-node>
  7. <xr-node node-id="camera-target" position="0 0 0"></xr-node>
  8. <xr-node id="wrap">
  9. <xr-gltf id="gltf" position="0 0 0" rotation="0 0 0" scale="6 6 6" model="gltf-floating_castle" bind:gltf-loaded="handleGLTFLoaded"></xr-gltf>
  10. </xr-node>
  11. <xr-camera
  12. id="camera" node-id="camera" position="2 3 -5" clear-color="0.2 0.2 0.2 1"
  13. target="camera-target"
  14. camera-orbit-control=""
  15. ></xr-camera>
  16. </xr-node>
  17. <xr-node node-id="lights">
  18. <xr-light type="ambient" color="1 1 1" intensity="0.6" />
  19. <xr-light type="directional" rotation="20 120 0" color="1 1 1" intensity="2"/>
  20. </xr-node>
  21. </xr-scene>