API ReferenceGE Extensionsflowgraphnodesenvironment
Set ScatterSky Node
- **File:** `flowgraph/nodes/environment/setScatterSky.lua`
Overview
- File:
flowgraph/nodes/environment/setScatterSky.lua - Name: Set ScatterSky
- Category:
dynamic_instant - Icon:
simobject_scatter_sky
Sets various ScatterSky parameters (brightness, gradient textures, shadow settings). Stores and restores all values on execution start/stop.
Pin Schema
| Dir | Type | Name | Flags | Description |
|---|---|---|---|---|
| in | number | skyBrightness | Global sky brightness. | |
| in | string | colorizeGradientFile | hardcoded, hidden | Texture to modulate sky color. |
| in | string | sunScaleGradientFile | hardcoded, hidden | Texture to modulate sun color. |
| in | string | ambientScaleGradientFile | hardcoded, hidden | Texture to modulate ambient color. |
| in | string | fogScaleGradientFile | hardcoded, hidden | Texture to modulate fog color. |
| in | string | nightGradientFile | hardcoded, hidden | Texture to modulate ambient at night. |
| in | string | nightFogGradientFile | hardcoded, hidden | Texture to modulate fog at night. |
| in | number | shadowDistance | Max shadow visibility distance. | |
| in | number | shadowSoftness | Shadow softness. | |
| in | number | logWeight | Balance between shadow distance and quality. |
Tags
environment, tod
Data Properties
| Property | Default | Description |
|---|---|---|
restoreScatterSky | true | Restore settings on execution stop. |
Key Methods
| Method | Description |
|---|---|
setScatterSkyParameters() | Applies all parameters via core_environment. Also refreshes gradients by calling setTimeOfDay. |
_executionStarted() | Stores all current ScatterSky values. |
_executionStopped() | Restores all stored values if enabled. |
See Also
- Directional Gravity - Related reference
- Get Cloud by ID - Related reference
- Get Fog - Related reference
- FlowGraph Guide - Guide