|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
The indirect light where ONE draw stands, when a grid was baked for it. More...


Go to the source code of this file.
Classes | |
| struct | esengine::ProbeConstants |
| The indirect light one instance stands in — both halves of it. More... | |
Namespaces | |
| namespace | esengine |
Variables | |
| constexpr u32 | esengine::PROBE_CONSTANTS_BINDING = 7 |
| Indexed UBO binding point for the per-draw ProbeConstants block. | |
| constexpr const char * | esengine::PROBE_CONSTANTS_BLOCK = "ProbeConstants" |
| GLSL block name; must match the injected Lit header + Shader::compile lookup. | |
| constexpr u32 | esengine::PROBE_MAX_INSTANCES = 100 |
| How many instances of one merged draw carry their own irradiance. | |
| constexpr u32 | esengine::PROBE_TEXELS = 10 |
| Texels one instance's indirect light occupies in that block. | |
| constexpr u32 | esengine::PROBE_BLOCK_BYTES |
| Bytes the block is declared with: every run, then one vec4 that is not data. | |
The indirect light where ONE draw stands, when a grid was baked for it.
Per DRAW and rewritten immediately before it, the way SkinConstants and MorphConstants are. A draw and not an object: a bake's rectangle belongs to an object, because one mesh placed twice occupies two patches, but irradiance is a function of WHERE, and a batch of instances has only one position to speak of. So a draw that stands in a volume is its own.
Nine coefficients and not four: this is the same shape LightConstants::envIrradiance carries, evaluated by the same expression. An environment is that field held constant; a volume is it sampled.
Definition in file ProbeConstants.hpp.