index.wxml 1.6 KB

1234567891011121314151617181920212223242526
  1. <xr-scene id="xr-scene" bind:ready="handleReady" bind:tick="handleTick">
  2. <xr-assets bind:progress="handleAssetsProgress" bind:loaded="handleAssetsLoaded">
  3. <xr-asset-material asset-id="standard-mat" effect="standard" />
  4. </xr-assets>
  5. <xr-env env-data="xr-frame-team-workspace-day"/>
  6. <xr-node>
  7. <xr-mesh node-id="mesh-plane" position="0 -0.02 -4" rotation="0 0 0" scale="5 1 5" geometry="plane" material="standard-mat" uniforms="u_baseColorFactor:0.48 0.78 0.64 1" receive-shadow></xr-mesh>
  8. <xr-mesh id="cube" node-id="mesh-cube" position="-1 0.5 -3.5" scale="1 1 1" rotation="0 45 0" geometry="cube" material="standard-mat" uniforms="u_baseColorFactor:0.298 0.764 0.85 1" cast-shadow></xr-mesh>
  9. <xr-mesh node-id="mesh-cylinder" position="1 0.7 -3.5" scale="1 0.7 1" geometry="cylinder" material="standard-mat" uniforms="u_baseColorFactor:1 0.776 0.364 1" cast-shadow></xr-mesh>
  10. <xr-mesh node-id="mesh-sphere" position="0 1.25 -5" scale="1.25 1.25 1.25" geometry="sphere" material="standard-mat" uniforms="u_baseColorFactor:0.937 0.176 0.368 1" cast-shadow></xr-mesh>
  11. <xr-node id="player" node-id="player" position="0 1.6 1" rotation="0 180 0">
  12. <xr-camera
  13. id="camera" node-id="camera"
  14. position="0 0 0" rotation="0 0 0"
  15. clear-color="0.925 0.925 0.925 1"
  16. background="skybox"
  17. ></xr-camera>
  18. </xr-node>
  19. </xr-node>
  20. <xr-node node-id="lights">
  21. <xr-light type="ambient" color="1 1 1" intensity="1" />
  22. <xr-light type="directional" rotation="40 170 0" color="1 1 1" intensity="3" cast-shadow />
  23. </xr-node>
  24. </xr-scene>