|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
The indirect light one instance stands in — both halves of it. More...
#include <ProbeConstants.hpp>
Public Attributes | |
| glm::vec4 | irradiance [9] {} |
| glm::vec4 | reflection {0.0f} |
The indirect light one instance stands in — both halves of it.
Definition at line 45 of file ProbeConstants.hpp.
| glm::vec4 esengine::ProbeConstants::irradiance[9] {} |
SH9, rgb in xyz. [0].w is 1 where this draw stands in a volume — a flag and not the absence of coefficients, since zeroes ARE an answer here: a probe in the dark.
Definition at line 49 of file ProbeConstants.hpp.
Referenced by esengine::MeshPlugin::collect(), and esengine::ProbeStore::sample().
| glm::vec4 esengine::ProbeConstants::reflection {0.0f} |
x = which column of the frame's reflection atlas this instance reflects. 0 is the environment, so an instance inside no probe needs nothing written here and a zeroed run is already right. y = the first coefficient of the sky's visibility (the other eight ride irradiance[1..8].w), z = 1 when there is one (a grid baked with sky occlusion): the shaders' skyOcclusion().
Definition at line 55 of file ProbeConstants.hpp.
Referenced by esengine::MeshPlugin::collect(), and esengine::ProbeStore::sample().