Documentation / Node reference / code nodes

code/Sky

Outputs the colour of a daylight sky in a direction.

Color

Outputs the colour of a daylight sky seen in a direction, lit by a sun you place. Use it to bake an environment map or to draw a sky.

Parameters

Name Type What it does
direction Vector3 Direction to look in.
sunElevation Float Sun height above the horizon, in degrees. Negative is night.
sunAzimuth Float Sun direction around Y, in degrees, from +Z toward +X.
turbidity Float Haze in the air. 2 is clear, 10 thick haze.
exposure Float Brightness multiplier.
sunDisc Bool Draw the sun as a disc.

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.