|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
The samplers the engine injects into a shader, and the texture unit each is pinned to. More...
#include "../../core/Types.hpp"

Go to the source code of this file.
Namespaces | |
| namespace | esengine |
Variables | |
| constexpr const char * | esengine::SHADOW_MAP_SAMPLER = "u_shadowMap" |
| The injected shadow-map sampler, and the texture unit Shader::compile pins it to. | |
| constexpr u32 | esengine::SHADOW_MAP_TEXTURE_UNIT = 2 |
| constexpr const char * | esengine::ENV_MAP_SAMPLER = "u_envMap" |
| The injected reflection sampler, one unit past the shadow map's. | |
| constexpr u32 | esengine::ENV_MAP_TEXTURE_UNIT = 3 |
| constexpr const char * | esengine::MORPH_DELTA_SAMPLER = "u_morphDeltas" |
| The sampler a mesh's morph deltas arrive through, and the unit it is pinned to. | |
| constexpr u32 | esengine::MORPH_DELTA_TEXTURE_UNIT = 4 |
| constexpr const char * | esengine::LIGHTMAP_SAMPLER = "u_lightmap" |
| The baked-light atlas, and the unit a lightmapped mesh samples it from. | |
| constexpr u32 | esengine::LIGHTMAP_TEXTURE_UNIT = 5 |
| constexpr const char * | esengine::PROBE_GRID_SAMPLER = "u_probeGrid" |
| The frame's probe atlas, read per pixel, on the bake's unit. | |
| constexpr const char * | esengine::SHAPE_2D_SAMPLER = "u_lightShape2D" |
| The 2D light-shape mask, and the unit below the shadow mask's. | |
| constexpr u32 | esengine::SHAPE_2D_TEXTURE_UNIT = 6 |
| constexpr const char * | esengine::SHADOW_2D_SAMPLER = "u_shadow2D" |
| The 2D shadow mask, and the texture unit every Lit shader samples it from. | |
| constexpr u32 | esengine::SHADOW_2D_TEXTURE_UNIT = 7 |
| constexpr const char * | esengine::WATER_SUN_SAMPLER = "u_waterSunField" |
| constexpr u32 | esengine::WATER_SUN_TEXTURE_UNIT = 16 |
The samplers the engine injects into a shader, and the texture unit each is pinned to.
One table for the three that act on it: Shader::compile pins the samplers, BatchBuilder fills a draw's units with what they read, and ShaderParser hands a material texture only a unit its shader does not read from here. Dependency free, so the parser and its native harness take it without the renderer's math.
Definition in file EngineTextureUnits.hpp.