Lumberyard
Legacy Reference

Environment Nodes

Flow Graph is deprecated and will be removed in a future version of Lumberyard. Learn about Script Canvas, Lumberyard's new visual scripting environment.

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn about the latest features, see the Amazon Lumberyard User Guide.

You can use the following flow graph nodes to configure environment settings.

MoonDirection node

Used to set the moon's position in the sky.

Inputs

Port Type Description
Get Any Get current latitude and longitude
Set Any Set latitude and longitude
Latitude Float Latitude to be set
Longitude Float Longitude to be set
ForceUpdate Boolean Force immediate update of the sky

Outputs

Port Type Description
Latitude Float Output current latitude
Longitude Float Output current longitude

OceanSwitch node

Used to enable ocean rendering.

Inputs

Port Type Description
Enable Boolean Enable ocean rendering

PerEntityShadows node

Used to enable and specify per entity shadows.

Inputs

Port Type Description
Enabled Boolean Activates the node
Trigger Any Triggers the parameters
ConstBias Float

Reduces any self-shadowing artifacts

SlopeBias Float

Reduces any self-shadowing artifacts

Jittering Float

Filters kernel size, which directly affects shadow softness

BBoxScale Vec3

Scale factor for the bounding box of the selected entity. Can be useful in case the bounding box is too small or too large

ShadowMapSize Integer

Size of the custom shadow map, which is automatically rounded to the next power of two

RainProperties node

Used to get and output rain properties.

Inputs

Port Type Description
Trigger Any Activates the node
Amount Float Amount of rain
PuddlesAmount Float Amount of puddles
PuddlesRippleAmount Float Amount of puddle ripples
RainDropsAmount Float Amount of raindrops

RecomputeStaticShadows node

Cached shadow cascades are centered around the rendering camera by default, and automatically recenter and update once the camera gets close to the cascade border. Use this node to override this automated placement.

Input

Port Type Description
Trigger Any Activates the node
Min Vec3 Minimum bounding box position
Max Vec3 Maximum bounding box position
NextCascadesScale Float Input multiplier value

SetOceanMaterial node

Used to set the ocean material.

Inputs

Port Type Description
Set Any Set material on for the ocean
Material String Material to be set for the ocean

Outputs

Port Type Description
Success Any Triggered when material set
Failed Any Triggered if an error occurred

SkyMaterialSwitch node

Used to enable sky material switching.

Inputs

Port Type Description
Material String Material to use for the sky
Start Boolean Start material switch
Angle Float Starting angle
Stretching Float If stretching is performed or not

SkyboxSwitch node

Used to enable asynchronous sky box switching.

Inputs

Port Type Description
Skybox texture name String Name of texture file to use
Start Boolean Start asynchronous switching
Angle Float Starting angle
Stretching Float If stretching is performed or not

Sun node

Used to get and set the sun's position in the sky.

Inputs

Port Type Description
Get Any Get the current latitude and longitude
Set Any Set the latitude and longitude for the sun
Latitude Float Latitude to be set
Longitude Float Longitude to be set
ForceUpdate Boolean Forces an immediate update of the sky

Outputs

Port Type Description
Latitude Float Outputs current latitude
Longitude Float Outputs current longitude

TornadoWander

Used to move a tornado entity in the direction of the target.

Inputs

Port Type Description
Activate Any Activates the node
Target Any Location the tornado moves towards

Outputs

Port Type Description
Done Any Triggered when the tornado reaches the target

Wind node

Used to get and output the wind direction vector.

Inputs

Port Type Description
Get Any Get the current environment wind vector

Outputs

Port Type Description
WindVector Vec3 Outputs current environment wind vector