|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
One light as the channel assignment sees it: where its shadows are read and where they can land. More...
#include <ShadowChannels2D.hpp>
Public Attributes | |
| glm::vec2 | pos {0.0f} |
| f32 | read = 0.0f |
| Where a fragment reads this light's channel: within this distance of pos. | |
| f32 | write = 0.0f |
| Where its geometry can be written: within this distance of pos. | |
| bool | everywhere = false |
| A directional light is read and written everywhere, so it shares a channel with nothing. | |
One light as the channel assignment sees it: where its shadows are read and where they can land.
Definition at line 22 of file ShadowChannels2D.hpp.
| bool esengine::ShadowMaskLight::everywhere = false |
A directional light is read and written everywhere, so it shares a channel with nothing.
Definition at line 29 of file ShadowChannels2D.hpp.
Referenced by esengine::shadowMasksCollide().
| glm::vec2 esengine::ShadowMaskLight::pos {0.0f} |
Definition at line 23 of file ShadowChannels2D.hpp.
Referenced by esengine::shadowMasksCollide().
| f32 esengine::ShadowMaskLight::read = 0.0f |
Where a fragment reads this light's channel: within this distance of pos.
Definition at line 25 of file ShadowChannels2D.hpp.
Referenced by esengine::shadowMasksCollide().
| f32 esengine::ShadowMaskLight::write = 0.0f |
Where its geometry can be written: within this distance of pos.
Definition at line 27 of file ShadowChannels2D.hpp.
Referenced by esengine::shadowMasksCollide().