12345678910111213141516171819 |
- <xr-scene ar-system="modes:OSD" id="xr-scene" bind:ready="handleReady" bind:ar-ready="handleARReady" bind:log="handleLog">
- <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
- <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" />
- </xr-assets>
- <xr-node>
- <xr-node node-id="id2" scale="2 2 2" position="0 0 0"></xr-node>
- <xr-ar-tracker mode="OSD" src="{{markerImg}}">
- <xr-mesh geometry="plane" rotation="-90 0 0" scale="1 1 1" uniforms="u_baseColorFactor:0 1 0 0.5" states="alphaMode:BLEND" />
- </xr-ar-tracker>
- <xr-camera
- id="camera" node-id="camera" clear-color="0.925 0.925 0.925 1"
- background="ar" is-ar-camera
- ></xr-camera>
- </xr-node>
- <xr-node node-id="lights">
- <xr-light type="ambient" color="1 1 1" intensity="1" />
- <xr-light type="directional" rotation="180 0 0" color="1 1 1" intensity="3" />
- </xr-node>
- </xr-scene>
|