index.wxml 1.2 KB

1234567891011121314151617181920212223
  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-mech_drone" src="https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/mech_drone/scene.gltf" />
  4. <xr-asset-material asset-id="plane-shadow-mat" effect="plane-shadow" />
  5. </xr-assets>
  6. <xr-env env-data="xr-frame-team-workspace-day2" />
  7. <xr-node>
  8. <xr-node node-id="camera-target" position="0 0 0"></xr-node>
  9. <xr-gltf node-id="gltf-mech_drone" position="0 -2 0" rotation="0 0 0" scale="7 7 7" model="gltf-mech_drone" anim-autoplay cast-shadow></xr-gltf>
  10. <xr-mesh position="0 -2 0" scale="10 1 10" geometry="plane" material="plane-shadow-mat" receive-shadow></xr-mesh>
  11. <xr-camera
  12. id="camera" node-id="camera" position="2 3 -5" clear-color="0.96 0.96 0.96 1"
  13. target="camera-target" near="0.1" far="2000"
  14. camera-orbit-control="" background="skybox"
  15. ></xr-camera>
  16. </xr-node>
  17. <xr-node node-id="lights">
  18. <xr-light type="ambient" color="1 1 1" intensity="1.2" />
  19. <xr-light type="directional" rotation="40 0 0" color="1 1 1" intensity="3" cast-shadow />
  20. </xr-node>
  21. </xr-scene>