Lumberyard
User Guide (Version 1.16)

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 Parameters pane, for Sun, adjust the Sun Parameters as needed.

  3. Close the Time of Day editor.

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.

  2. In the Console Variables window, search for and set the following console variables to control the sun's rendering behavior. For more information, see Using the Console Window.

    Console Variable Description
    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: 0 to 100