index.wxml 966 B

1234567891011121314151617181920
  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-twa" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/twa.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-gltf id="twa" node-id="renderItem" position="0 0 0" rotation="0 0 0" scale="1.6 1.6 1.6" model="gltf-twa"></xr-gltf>
  9. <xr-camera
  10. id="camera" node-id="camera" position="6 0 0" clear-color="0.925 0.925 0.925 1"
  11. target="camera-target" background="skybox"
  12. 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="0.6" />
  17. <xr-light type="directional" rotation="20 120 0" color="1 1 1" intensity="2"/>
  18. </xr-node>
  19. </xr-scene>