ProceduralSkySettings#
A live gradient sky, used instead of the HDR map when present. Colors are sRGB hex strings; zenith is straight up, horizon is level, and ground is straight down. The gradient also supplies diffuse lighting and approximate rough reflections. The sun disk follows the scene's first active Directional Light, including its color and intensity; SunDiameter is its angular diameter in degrees (0 hides it). Change these settings and the light during Play to author a time-of-day or weather system.
public sealed record ProceduralSkySettings(string Zenith = "#408DD5", string Horizon = "#CFE3EE", string Ground = "#706957", float SunDiameter = .53f)Record properties#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Zenith | string | get; init; | "#408DD5" |
Horizon | string | get; init; | "#CFE3EE" |
Ground | string | get; init; | "#706957" |
SunDiameter | float | get; init; | .53f |
Source#
- Environment3D.cs