index.wxml 979 B

12345678910111213141516171819202122232425262728
  1. <xr-scene ar-system="modes:Plane" bind:ready="handleReady" bind:ar-ready="handleARReady">
  2. <xr-assets>
  3. </xr-assets>
  4. <xr-env env-data="xr-frame-team-workspace-day" />
  5. <xr-node>
  6. <xr-node node-id="center" position="0 0 0"></xr-node>
  7. <xr-ar-tracker mode="Plane">
  8. </xr-ar-tracker>
  9. <!-- root 用于动态放置节点 -->
  10. <xr-shadow id="root"></xr-shadow>
  11. <xr-camera
  12. id="camera" node-id="camera" clear-color="0.925 0.925 0.925 1"
  13. background="ar" is-ar-camera
  14. >
  15. <xr-mesh id="cursor" position="0 0 0.3" rotation="0 0 0" scale="0.03 0.03 0.03" geometry="cube"
  16. uniforms="u_baseColorFactor:0.298 0.764 0.85 0.8"
  17. states="renderQueue: 3000, alphaMode: BLEND, cullFace: 2"
  18. ></xr-mesh>
  19. </xr-camera>
  20. </xr-node>
  21. <xr-node node-id="lights">
  22. <xr-light type="ambient" color="1 1 1" intensity="1" />
  23. <xr-light type="directional" rotation="0 0 0" color="1 1 1" intensity="0.5" />
  24. </xr-node>
  25. </xr-scene>