Setting Sun Parameters and Console Variables - Lumberyard User Guide

Setting Sun Parameters and Console Variables

Open 3D Engine (O3DE), the successor to Lumberyard, is now available in Developer Preview. Download O3DE or visit the AWS Game Tech blog to learn more.

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

    Activates or deactivates the sun's light source.

    0 = Deactivate

    1 = Activate


    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.


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


    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