index.wxml 1.0 KB

12345678910111213141516171819
  1. <xr-scene ar-system="modes:OSD" id="xr-scene" bind:ready="handleReady" bind:ar-ready="handleARReady" bind:log="handleLog">
  2. <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
  3. <xr-asset-load type="gltf" asset-id="gltf-burger" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/damage-helmet/index.glb" />
  4. </xr-assets>
  5. <xr-node>
  6. <xr-node node-id="id2" scale="2 2 2" position="0 0 0"></xr-node>
  7. <xr-ar-tracker mode="OSD" src="{{markerImg}}">
  8. <xr-mesh geometry="plane" rotation="-90 0 0" scale="1 1 1" uniforms="u_baseColorFactor:0 1 0 0.5" states="alphaMode:BLEND" />
  9. </xr-ar-tracker>
  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>