dao::lights::PointLight

struct

One point light’s colour, as the engine takes it to light an object.

Declared in dao/Lights.h.

Fields

Field Type  
color Color{} The colour the shaders are given, before the light’s flicker: vanilla’s until a callback sets it.
model std::wstring_view The name of the model the light is part of, or empty; lasts the call alone. A room’s layout lights are its <level><x><y>_<d>_ll, the level’s lights for figures _lc, the party portraits’ portrait_lightrig.
name std::wstring_view The light’s name in its model (the “Hotspots” of a level’s _ll.mmh), or empty; lasts the call alone.
node std::uintptr_t = 0 The light’s node, the same each frame for the same light; for telling lights apart.
own Color{} The light’s own colour, as its model has it, before its owner’s tint.
place Vector{} Where the light is in the world.
reach float = 0 How far the light reaches, in metres.