// This isn't raw code you type, but a representation of how the Rig's
// properties act as variables that the engine reads every frame.
struct EnvironmentalState:
// The sun's position and intensity (Directional Light)
SunAngle: float = 0.0 // 0 is noon, 0.5 is sunset
SunColor: vector = <1.0, 0.5, 0.0> // Orange-ish hue
// The sky's ambient light (Sky Light)
SkyIntensity: float = 1.0
// The fog density (Exponential Height Fog)
FogDensity: float = 0.05 // Higher = thicker fog
// Cinematic effects (Post-Processing)
VignetteStrength: float = 0.2 // Darkens corners
ColorGrade: vector = <1.0, 0.9, 0.8> // Warm tint
Verse Library
verse
01 Fragment
Defines a data structure to track and update dynamic lighting, fog, and post-processing settings for custom environments.
verse-library/environmental-lighting/01-fragment.verse