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

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.

Detailed Description

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.

Member Data Documentation

◆ everywhere

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

◆ pos

glm::vec2 esengine::ShadowMaskLight::pos {0.0f}

Definition at line 23 of file ShadowChannels2D.hpp.

Referenced by esengine::shadowMasksCollide().

◆ read

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

◆ write

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


The documentation for this struct was generated from the following file: