index.wxml 1.2 KB

1234567891011121314151617181920212223242526
  1. <xr-scene id="xr-scene" bind:ready="handleReady" ar-system="modes:Marker;camera:Back">
  2. <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
  3. <xr-asset-material asset-id="standard-mat" effect="standard" />
  4. <xr-asset-load type="raw" asset-id="logo" src="/assets/wx_logo.bmp.bin"></xr-asset-load>
  5. </xr-assets>
  6. <xr-physics></xr-physics>
  7. <xr-node>
  8. <xr-ar-tracker id="arTracker" mode="Marker" src="/components/xr-physics-shoot/weixin.png" bind:ar-tracker-state="handleARTrackerState">
  9. <xr-node></xr-node>
  10. </xr-ar-tracker>
  11. <xr-node layer="1">
  12. <xr-shadow id="bricksRoot" node-id="bricksRoot"></xr-shadow>
  13. </xr-node>
  14. <xr-camera
  15. id="camera2" node-id="camera2" clear-color="0.925 0.925 0.925 1" position="0 0 5"
  16. background="ar" is-ar-camera cull-mask="1"
  17. ></xr-camera>
  18. <xr-camera
  19. id="camera" node-id="camera" position="1 2 4" is-clear-color="false" target="bricksRoot"
  20. ></xr-camera>
  21. </xr-node>
  22. <xr-node node-id="lights">
  23. <xr-light type="ambient" color="1 1 1" intensity="1" />
  24. <xr-light type="directional" rotation="180 0 0" color="1 1 1" intensity="3" />
  25. </xr-node>
  26. </xr-scene>