|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
What the frame's light cap came to. More...
#include <LightPlan.hpp>
Public Member Functions | |
| void | clear () |
| LightRefusal | refusalFor (Entity entity) const |
| What entity was told, or None when it was not refused. | |
Public Attributes | |
| u32 | limit = 0 |
| The shader's array bound — what accepted can never exceed. | |
| u32 | requested = 0 |
| Lights that asked. Equal to accepted when nothing was turned away. | |
| u32 | accepted = 0 |
| std::vector< LightGrant > | refused |
| bool | environmentSun = false |
| glm::vec3 | environmentSunAim {0.0f} |
What the frame's light cap came to.
Definition at line 57 of file LightPlan.hpp.
|
inline |
Definition at line 73 of file LightPlan.hpp.
References accepted, environmentSun, environmentSunAim, refused, and requested.
|
inline |
What entity was told, or None when it was not refused.
Definition at line 82 of file LightPlan.hpp.
References esengine::None, esengine::Entity::raw, and refused.
Referenced by esengine::renderer_lightStatus().
| u32 esengine::LightCapReport::accepted = 0 |
Definition at line 62 of file LightPlan.hpp.
Referenced by clear().
| bool esengine::LightCapReport::environmentSun = false |
Whether a light cast the environment's sun this frame, and along what: the aim such a light takes is the panorama's and not its Transform's, and an editor drawing it from the Transform would point the wrong way.
Definition at line 70 of file LightPlan.hpp.
Referenced by clear(), and esengine::renderer_lightStatus().
| glm::vec3 esengine::LightCapReport::environmentSunAim {0.0f} |
Definition at line 71 of file LightPlan.hpp.
Referenced by clear(), and esengine::renderer_lightStatus().
| u32 esengine::LightCapReport::limit = 0 |
The shader's array bound — what accepted can never exceed.
Definition at line 59 of file LightPlan.hpp.
Referenced by esengine::renderer_lightStatus().
| std::vector<LightGrant> esengine::LightCapReport::refused |
Only the refused, each named. An accepted light is not listed: the question this answers is "why is this one dark", and a list of everything that worked is a list nobody reads.
Definition at line 66 of file LightPlan.hpp.
Referenced by clear(), refusalFor(), and esengine::renderer_lightStatus().
| u32 esengine::LightCapReport::requested = 0 |
Lights that asked. Equal to accepted when nothing was turned away.
Definition at line 61 of file LightPlan.hpp.
Referenced by clear(), and esengine::renderer_lightStatus().