LightingCombine.h file
Namespaces
- namespace nCine
- Root namespace of nCine game engine.
- namespace nCine::RHI
- Render Hardware Interface — compile-time-selectable graphics backend abstraction.
Functions
- auto ClampLightmapChannel(float v) -> float
- Clamps one raw lightmap channel into the [0, 1] the factor formula assumes.
- auto LightingCombineFactor(float r, float g, float amb) -> float
- The multiply-only lighting factor for ONE ambient channel.
- void LightingCombineFactors(float r, float g, float ambR, float ambG, float ambB, float& outR, float& outG, float& outB)
- The multiply-only lighting factors for all three ambient channels at once.
- auto AmbientLuminance(float r, float g, float b) -> float
- Rec.601 luminance of an ambient colour, for a lightmap store with no colour channels.