index.wxml 1.0 KB

1234567891011121314151617181920
  1. <xr-scene id="xr-scene" ar-system bind:ready="handleReady" bind:ar-ready="handleARReady" bind:ar-error="handleARError">
  2. <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
  3. <xr-asset-load type="gltf" asset-id="gltf-table" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/metal_table/scene.gltf" />
  4. </xr-assets>
  5. <xr-env env-data="gz-haixinsha"/>
  6. <xr-node>
  7. <xr-node node-id="camera-target" position="0 0 0"></xr-node>
  8. <xr-node node-id="table-wrap" position="0 0 0">
  9. <xr-gltf node-id="mesh-gltf-table" position="0 -1 0" rotation="0 45 0" scale="0.5 0.5 0.5" model="gltf-table" />
  10. </xr-node>
  11. <xr-camera
  12. position="2 1 2" clear-color="0.925 0.925 0.925 1"
  13. background="ar" target="camera-target" camera-orbit-control=""
  14. />
  15. </xr-node>
  16. <xr-node node-id="lights">
  17. <xr-light type="ambient" color="1 1 1" intensity="0.2" />
  18. <xr-light type="directional" rotation="180 0 0" color="1 1 1" intensity="2" />
  19. </xr-node>
  20. </xr-scene>