dao::lights::Ambient
struct
One object’s ambient light, as the engine has just worked it out.
Declared in dao/Lights.h.
Fields
| Field | Type | |
|---|---|---|
base |
Color{} |
What the ambient lights are added to: zero in every case read so far. |
chosen |
Chosen = Chosen::Unknown |
Which chooser last chose the object’s lights. |
color |
Color{} |
The colour the shaders are given, vanilla’s until a callback sets it; w is 1. |
lights |
std::span<const Color> |
The colour of each ambient light chosen for the object, which vanilla adds to the base. |
state |
std::uintptr_t = 0 |
The object’s light state, the same each frame for the same object; for telling objects apart. |