module
Shadow atlasCreates and manages a shadow map atlas.
Dependencies
Files
- file plugin.hpp
- Plugin entry point.
- file shadow_atlas.hpp
- Resource cubos::
engine:: ShadowAtlas.
Classes
- class cubos::engine::ShadowAtlas
- Resource which stores the shadow map atlas, a large texture that holds the shadow maps for each shadow caster in a quadtree structure, reducing texture switching.
Functions
-
auto shadowAtlasPlugin(Cubos& cubos) -> CUBOS_
ENGINE_ API void - Plugin entry function.
Variables
-
CUBOS_
ENGINE_ API Tag createShadowAtlasTag - Creates the shadow atlas.
-
CUBOS_
ENGINE_ API Tag reserveShadowCastersTag - Reserves space for shadow casters.
-
CUBOS_
ENGINE_ API Tag drawToShadowAtlasTag - Systems which draw to the shadow atlas texture should be tagged with this.
Function documentation
CUBOS_ ENGINE_ API void shadowAtlasPlugin(Cubos& cubos)
Plugin entry function.
Parameters | |
---|---|
cubos | Cubos main class. |
Variable documentation
CUBOS_ ENGINE_ API Tag createShadowAtlasTag
Creates the shadow atlas.
CUBOS_ ENGINE_ API Tag reserveShadowCastersTag
Reserves space for shadow casters.
CUBOS_ ENGINE_ API Tag drawToShadowAtlasTag
Systems which draw to the shadow atlas texture should be tagged with this.