index.wxml 1.0 KB

1234567891011121314151617181920
  1. <xr-scene id="xr-scene" bind:ready="handleReady">
  2. <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
  3. <xr-asset-load type="gltf" asset-id="gltf" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/compress-textures-test/gltf/index.gltf" />
  4. <xr-asset-load type="gltf" asset-id="glb" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/compress-textures-test/glb/index.glb" />
  5. </xr-assets>
  6. <xr-node>
  7. <xr-node node-id="camera-target" position="0 0 0"></xr-node>
  8. <xr-gltf position="-5 0 0" model="gltf"></xr-gltf>
  9. <xr-gltf position="5 0 0" model="glb"></xr-gltf>
  10. <xr-camera
  11. position="0 0 -20" clear-color="0.9 0.9 0.9 1"
  12. target="camera-target"
  13. camera-orbit-control=""
  14. ></xr-camera>
  15. </xr-node>
  16. <xr-node node-id="lights">
  17. <xr-light type="ambient" color="1 1 1" intensity="0.3" />
  18. <xr-light type="directional" rotation="180 0 0" color="1 1 1" intensity="2" />
  19. </xr-node>
  20. </xr-scene>