index.wxml 889 B

12345678910111213141516171819202122
  1. <xr-scene id="xr-scene" bind:ready="handleReady">
  2. <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
  3. </xr-assets>
  4. <xr-node>
  5. <xr-mesh node-id="floor-plane" position="0 -1 0" rotation="0 0 0" scale="10 1 10" geometry="plane"
  6. uniforms="u_baseColorFactor:1 1 1 1" receive-shadow
  7. ></xr-mesh>
  8. <xr-mesh id="move-sphere" node-id="move-sphere"
  9. position="0 0 0" scale="1 1 1" geometry="sphere"
  10. uniforms="u_metallicRoughnessValues: 0 1"
  11. cast-shadow
  12. ></xr-mesh>
  13. <xr-camera
  14. id="camera" node-id="camera" position="0 5 10" clear-color="0.8 0.8 0.8 1"
  15. target="move-sphere"
  16. ></xr-camera>
  17. </xr-node>
  18. <xr-node node-id="lights">
  19. <xr-light type="ambient" color="1 1 1" intensity="1" />
  20. <xr-light type="directional" rotation="40 170 0" color="1 1 1" intensity="3" cast-shadow/>
  21. </xr-node>
  22. </xr-scene>