|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
What each caster asked the shadow atlas for, and what it got. More...


Go to the source code of this file.
Classes | |
| struct | esengine::ShadowGrant |
| One caster's claim on the atlas: what it wanted, what it kept, and why the difference. More... | |
| struct | esengine::ShadowPlanReport |
| The frame's whole shadow allocation, as numbers something outside it can check. More... | |
Namespaces | |
| namespace | esengine |
Enumerations | |
| enum class | esengine::ShadowClaim : u8 { esengine::AllOrNothing , esengine::AllowFewer } |
Functions | |
| ShadowGrant | esengine::claimTiles (ShadowAtlas &atlas, Entity light, u32 want, u32 cells, i32 &outFirst, ShadowClaim policy=ShadowClaim::AllOrNothing) |
| Claim a complete shadow map, or explicitly allow fewer cascades. | |
What each caster asked the shadow atlas for, and what it got.
A caster the atlas could not fit kept no tiles and cast nothing, and the frame counted the tiles it DID hand out. So "why does this object have no shadow" had no answer anywhere in the engine — not a missing panel, a missing fact.
Header-only and free of the renderer, like LodSelection.hpp: the giving-way rule is the part worth holding to a criterion, and it needs no device to be wrong.
Definition in file ShadowPlan.hpp.