84 if (g.light.raw == entity.
raw)
return g.refusal;
Math utilities and GLM configuration for ESEngine.
Core type definitions and utilities for ESEngine.
LightRefusal
Why a light did not reach the frame.
@ Capacity
More lights in view than the shader's arrays hold; the dimmest gave way.
@ NoEnvironmentSun
Follows the environment's sun, and the frame's environment has none.
std::uint32_t u32
Unsigned 32-bit integer.
const char * lightRefusalName(LightRefusal why)
The refusal as a word, for a log line and for a reader.
std::uint8_t u8
Unsigned 8-bit integer.
float f32
32-bit floating point
Entity identifier with packed index + generation.
What the frame's light cap came to.
glm::vec3 environmentSunAim
LightRefusal refusalFor(Entity entity) const
What entity was told, or None when it was not refused.
u32 requested
Lights that asked. Equal to accepted when nothing was turned away.
std::vector< LightGrant > refused
u32 limit
The shader's array bound — what accepted can never exceed.
One light that asked to be in the frame, and what it was told.