index.wxml 825 B

123456789101112131415
  1. <xr-scene render-system="alpha:true" bind:ready="handleReady">
  2. <xr-node>
  3. <xr-mesh id="cube" node-id="mesh-cube" position="-0.5 0 0" geometry="cube" uniforms="u_baseColorFactor:0.298 0.764 0.85 {{cubeAlpha}}" states="alphaMode:BLEND" />
  4. <xr-mesh node-id="mesh-sphere" position="0.5 0 0" geometry="sphere" uniforms="u_baseColorFactor:0.937 0.176 0.368 {{sphereAlpha}}" states="alphaMode:BLEND" />
  5. <xr-node node-id="target" position="0 0 0" />
  6. <xr-camera
  7. id="camera" node-id="camera" position="0 2 2" clear-color="{{clearColor}}"
  8. target="target" camera-orbit-control=""
  9. ></xr-camera>
  10. </xr-node>
  11. <xr-node node-id="lights">
  12. <xr-light type="ambient" color="1 1 1" intensity="1" />
  13. <xr-light type="directional" rotation="40 170 0" color="1 1 1" intensity="3" />
  14. </xr-node>
  15. </xr-scene>