AssetBash Docs Sign in
Lunaris USD + path tracing in TouchDesigner

Sun & Sky

The Sun & Sky operator makes a sun (a distant light) and a sky (a dome light) that match each other, from a physical model of the atmosphere. Add it from + Op → Sun & Sky.

Placing the sun

Sun Position has two modes:

ModeSet
Azimuth / ElevationAzimuth (degrees clockwise from north) and Elevation (degrees above the horizon).
Date, Time and PlaceOn the Date & Place page: year, month, day, Local Time in hours (14.5 = 2:30 pm), latitude, longitude and the UTC offset. The computed azimuth and elevation are shown below them.

North Offset turns the whole sun path to match your scene. By default north is the scene's −Z direction.

Sun

ParameterUse
Sun from Sky ModelOn: the sun's brightness and colour come from the atmosphere, so a low sun is dimmer and warmer. The result is shown as Sun Illuminance (lux).
Sun Intensity, Sun Exposure, Sun ColorScale or tint the sun. With the model on, these multiply what it gives.
Sun AngleThe size of the sun's disc. 0.53° is the real sun; larger gives softer shadows.

Sky

ParameterUse
Sky DomeTurns the sky on or off (for example, sun only indoors).
Sky ModelPhysical Atmosphere, or Constant Colour using Sky Color.
HazeMore haze makes the sky paler and the glow around the sun bigger.
Ground AlbedoHow bright the ground below the horizon is, which also lightens the lower sky.
Camera AltitudeHeight of the scene above sea level, in metres.
Sky IntensityScales the sky.
Sky Texture WidthDetail of the sky image: 512, 1024 or 2048 wide. 1024 is a good default.

The sky is recalculated on the GPU whenever the sun moves, and saved as an EXR in usd/cache/sky/ so Storm and exports can use it.

The physical sky keeps working below the horizon: sunsets turn orange and purple, and twilight fades out gradually after the sun has set.

Exposure

The sun and sky are in real units. Midday sun is about 100,000 lux, so the viewport needs an exposure around EV −14. At sunset, raise it to about −8 to −10.

Time-of-day animation

On the Animate page, turn on Animate Time of Day. The sun then moves from Hour at Range Start to Hour at Range End across the timeline's range. Local Time (computed) shows the hour at the current frame.

When you export with animation, the sun's movement and a sky image per frame go into the USD file. See Export to Karma.