Struct CompiledViewport::LightState
Defined in File CompiledViewport.h
Nested Relationships
This struct is a nested type of Class CompiledViewport.
Struct Documentation
-
struct LightState
Cached lighting state (for detecting changes that affect rendering). Light uniforms are uploaded every frame from m_lightParams, so this only needs to detect changes that require matrix recomputation (shadow map P/V depends on primary directional direction) or that should trigger a repaint.
Public Functions
-
bool operator!=(const LightState &other) const
Public Members
-
float ambient = 0
-
size_t numLights = 0
-
mrpt::math::TVector3Df primaryDirection = {0, 0, -1}
-
size_t paramsHash = 0
Coarse hash of all light parameters to detect any change
-
bool operator!=(const LightState &other) const