index.wxml 971 B

12345678910111213141516171819
  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-LightsPunctualLamp" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/LightsPunctualLamp.glb" />
  4. </xr-assets>
  5. <xr-env env-data="xr-frame-team-workspace-day" />
  6. <xr-node>
  7. <xr-node node-id="camera-target" position="0 0 0"></xr-node>
  8. <xr-gltf node-id="gltf-LightsPunctualLamp" position="0 -1 0" rotation="0 0 0" scale="1 1 1" model="gltf-LightsPunctualLamp"></xr-gltf>
  9. <xr-camera
  10. id="camera" node-id="camera" position="0 0 3" clear-color="0.1 0.1 0.1 1"
  11. near="0.1"
  12. far="2000"
  13. target="camera-target" camera-orbit-control=""
  14. ></xr-camera>
  15. </xr-node>
  16. <xr-node node-id="lights">
  17. <!-- 场上最多只允许4个光源,所以不需要场景光源,由模型提供实际光源 -->
  18. </xr-node>
  19. </xr-scene>