Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::LightCapReport Struct Reference

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}

Detailed Description

What the frame's light cap came to.

Definition at line 57 of file LightPlan.hpp.

Member Function Documentation

◆ clear()

void esengine::LightCapReport::clear ( )
inline

Definition at line 73 of file LightPlan.hpp.

References accepted, environmentSun, environmentSunAim, refused, and requested.

◆ refusalFor()

LightRefusal esengine::LightCapReport::refusalFor ( Entity entity) const
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().

Member Data Documentation

◆ accepted

u32 esengine::LightCapReport::accepted = 0

Definition at line 62 of file LightPlan.hpp.

Referenced by clear().

◆ environmentSun

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().

◆ environmentSunAim

glm::vec3 esengine::LightCapReport::environmentSunAim {0.0f}

Definition at line 71 of file LightPlan.hpp.

Referenced by clear(), and esengine::renderer_lightStatus().

◆ limit

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().

◆ refused

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().

◆ requested

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().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/renderer/store/LightPlan.hpp