1234567891011121314151617181920212223 |
- <xr-scene id="xr-scene" bind:ready="handleReady">
- <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
- <xr-asset-load
- type="env-data" asset-id="env1" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/env-test.bin"
- />
- <xr-asset-load type="gltf" asset-id="gltf-damageHelmet" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/damage-helmet/index.gltf" />
- </xr-assets>
- <xr-env env-data="env1" />
- <xr-node>
- <xr-node node-id="camera-target" position="0 0 0"></xr-node>
- <xr-gltf node-id="gltf-damageHelmet" position="0 0 0" rotation="0 0 0" scale="1.2 1.2 1.2" model="gltf-damageHelmet"></xr-gltf>
- <xr-camera
- id="camera" node-id="camera" position="0 0 3" clear-color="0.925 0.925 0.925 1"
- near="0.1"
- far="2000"
- target="camera-target" background="skybox" camera-orbit-control=""
- ></xr-camera>
- </xr-node>
- <xr-node node-id="lights">
- <xr-light type="ambient" color="1 1 1" intensity="0.3" />
- <xr-light type="directional" rotation="40 180 0" color="1 1 1" intensity="2" />
- </xr-node>
- </xr-scene>
|