index.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <xr-scene ar-system="modes:Marker; planeMode: 1;" bind:ready="handleReady" bind:ar-ready="handleARReady">
  2. <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
  3. </xr-assets>
  4. <xr-node node-id="MarkerNode">
  5. <xr-ar-tracker node-id="Marker" mode="Marker" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/rizhaoSaomiao.jpg" bind:ar-tracker-switch="handleTrackerSwitch"
  6. bind:ar-tracker-state="handleARTrackerState">
  7. </xr-ar-tracker>
  8. <xr-ar-tracker node-id="Marker" mode="Marker" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/ZaoZhuangShiBie.jpg" bind:ar-tracker-switch="handleTrackerSwitch"
  9. bind:ar-tracker-state="handleARTrackerState">
  10. </xr-ar-tracker>
  11. <xr-ar-tracker node-id="Marker" mode="Marker" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/rizhaoshibietubg.jpg" bind:ar-tracker-switch="handleTrackerSwitch"
  12. bind:ar-tracker-state="handleARTrackerState">
  13. </xr-ar-tracker>
  14. <xr-ar-tracker node-id="Marker" mode="Marker" src="https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/zaozhuangshibietubg.jpg" bind:ar-tracker-switch="handleTrackerSwitch"
  15. bind:ar-tracker-state="handleARTrackerState">
  16. </xr-ar-tracker>
  17. </xr-node>
  18. <xr-camera
  19. id="camera" node-id="camera" position="1 1 1" clear-color="0.925 0.925 0.925 1"
  20. background="ar" is-ar-camera
  21. />
  22. <xr-node node-id="lights">
  23. <xr-light type="ambient" color="1 1 1" intensity="0.3" />
  24. <xr-light type="directional" rotation="30 60 0" color="1 1 1" intensity="1" />
  25. </xr-node>
  26. </xr-scene>