index.wxml 1.1 KB

12345678910111213141516171819
  1. <xr-scene ar-system="modes:Plane Marker; planeMode: 1;" 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-item" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/just_a_girl/index.glb" />
  4. </xr-assets>
  5. <xr-node>
  6. <xr-gltf model="gltf-item" position="1 0 1" scale="0.006 0.006 0.006"></xr-gltf>
  7. <xr-gltf model="gltf-item" position="1 0 -1" scale="0.006 0.006 0.006"></xr-gltf>
  8. <xr-gltf model="gltf-item" position="-1 0 1" scale="0.006 0.006 0.006"></xr-gltf>
  9. <xr-gltf model="gltf-item" position="-1 0 -1" scale="0.006 0.006 0.006"></xr-gltf>
  10. <xr-camera
  11. id="camera" node-id="camera" clear-color="0.925 0.925 0.925 1"
  12. background="ar" is-ar-camera
  13. ></xr-camera>
  14. </xr-node>
  15. <xr-node node-id="lights">
  16. <xr-light type="ambient" color="1 1 1" intensity="1" />
  17. <xr-light type="directional" rotation="180 0 0" color="1 1 1" intensity="3" />
  18. </xr-node>
  19. </xr-scene>