index.wxml 1.2 KB

123456789101112131415161718192021
  1. <xr-scene ar-system="modes:Face;camera:Front;pose3d:true;" bind:ready="handleReady" bind:ar-ready="handleARReady">
  2. <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
  3. <xr-asset-load type="gltf" asset-id="gltf-face" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/face.glb" />
  4. <xr-asset-load type="gltf" asset-id="gltf-glass" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/glasses.glb" />
  5. </xr-assets>
  6. <xr-env env-data="xr-frame-team-workspace-day" />
  7. <xr-node>
  8. <xr-ar-tracker id='tracker' mode="Face">
  9. <xr-gltf id="face" node-id="gltf-face" position="0 0 0" rotation="0 0 0" scale="1 1 1" model="gltf-face" never-cull></xr-gltf>
  10. <xr-gltf node-id="gltf-glass" position="0 0 0" rotation="0 0 0" scale="1 1 1" model="gltf-glass"></xr-gltf>
  11. </xr-ar-tracker>
  12. <xr-camera
  13. id="camera" node-id="camera" clear-color="0.925 0.925 0.925 1"
  14. background="ar" is-ar-camera near="0.01"
  15. ></xr-camera>
  16. </xr-node>
  17. <xr-node node-id="lights">
  18. <xr-light type="ambient" color="1 1 1" intensity="0.2" />
  19. <xr-light type="directional" rotation="180 0 0" color="1 1 1" intensity="1" />
  20. </xr-node>
  21. </xr-scene>