Skip to content

Move the sun of a procedural sky

Updated

The cheap procedural Sky, with a sun disc: the script steps the sun’s elevation from morning to a low sunset and back, raising the haze near the horizon, and aims the Sun light along sunDirection.

Watch the sky redden as the sun sinks to the horizon, then rise again. Drag to orbit the camera, scroll to zoom.

Move the sun of a procedural sky

Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.

ProceduralSky.xrproj