123456789101112131415161718192021 |
- <xr-scene ar-system="modes:Face;camera:Front" bind:ready="handleReady" bind:ar-ready="handleARReady">
- <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
- <xr-asset-load type="gltf" asset-id="gltf-glass" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/jokers_mask_persona5.glb" />
- </xr-assets>
- <xr-env env-data="xr-frame-team-workspace-day" />
- <xr-node wx:if="{{arReady}}">
- <xr-ar-tracker id='tracker' mode="Face" auto-sync="43">
- <xr-node name="nose" >
- <xr-gltf node-id="gltf-glass" position="0 0.02 -0.05" rotation="0 180 0" scale="0.5 0.5 0.5" model="gltf-glass"></xr-gltf>
- </xr-node>
- </xr-ar-tracker>
- <xr-camera
- id="camera" node-id="camera" clear-color="0.925 0.925 0.925 1"
- background="ar" is-ar-camera near="0.01"
- ></xr-camera>
- </xr-node>
- <xr-node node-id="lights">
- <xr-light type="ambient" color="1 1 1" intensity="0.2" />
- <xr-light type="directional" rotation="180 0 0" color="1 1 1" intensity="1" />
- </xr-node>
- </xr-scene>
|