User Guide (Version 1.15)

Setting Sun Parameters and Console Variables

You can define how the sun appears in the daytime sky.

To set sun parameters

  1. In Lumberyard Editor, choose Tools, Other, Time Of Day.

  2. In the Time of Day Tasks pane, under Tasks, choose Toggle Advanced Properties to view all parameters.

  3. In the Parameters pane, under Sun, adjust the following parameters as needed:

    • Sun color – Sets the color (RGB values) of the sun. You can use this parameter along with Sun intensity to provide the preferred scene luminance. This parameter is also used to control the color and intensity of the light from the moon.

    • Sun intensity (lux) – Sets the brightness of the sun. This value is multiplied by the sun color to yield the overall color.

    • Sun specular multiplier – Controls the brightness and intensity of the sun on specular materials in your scene.

You can define how the sun renders in the daytime sky.

To set console variables for sun rendering behavior

  1. In Lumberyard Editor, in the Console pane, click the icon in the bottom left corner.

  2. In the Console Variables window, search for and set the following console variables to control the sun's rendering behavior:

    • e_Sun – Activates or deactivates the sun's light source. 0 = deactivate | 1 = activate.

    • e_SunAngleSnapDot – Updates the cached sun direction if the dot product (cached sun direction and real-time sun direction) is less than the specified value for this console variable.

    • e_SunAngleSnapSec – Determines how often, in seconds, to update the cached sun direction.

    • e_SkyUpdateRate – Specifies the percentage of a full dynamic sky update, calculated per frame. This console variable affects how smoothly the sun moves in the sky, if the speed value in the Time of Day Editor is greater than 0. Higher values may impact rendering performance. Valid values are 0 to 100.