|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
A box inside which reflections come from a bake rather than from the sky. More...
#include <ReflectionProbe.hpp>
Public Member Functions | |
| ReflectionProbe ()=default | |
Public Attributes | |
| resource::EnvironmentHandle | reflection |
| The scene's baked reflections — an .esenv whose atlas holds a column per probe. The baker writes it; invalid means nothing is baked yet, and what stands here reflects the sky as before. | |
| glm::vec3 | halfExtents {200.0f, 200.0f, 200.0f} |
| Half the box this probe answers inside, in world units. | |
| u32 | slot {0} |
| Which column of the atlas holds it. Column 0 is the environment — what a surface outside every probe reflects — so a probe's own is 1 or more, and 0 reads as "not baked yet". | |
| bool | enabled {true} |
| Disabled probes are skipped, and what stands inside reflects the sky. | |
A box inside which reflections come from a bake rather than from the sky.
The atlas is the SCENE's and this says which column is here, which is what lets a room full of shiny things still merge into one draw. Axis-aligned about the entity, like LightProbeVolume: the box is what a reflection is PROJECTED onto, and a turned one costs a pixel more.
Definition at line 33 of file ReflectionProbe.hpp.
|
default |
| bool esengine::ecs::ReflectionProbe::enabled {true} |
Disabled probes are skipped, and what stands inside reflects the sky.
Definition at line 52 of file ReflectionProbe.hpp.
Referenced by reflectionprobeApplyJS(), and reflectionprobeToJS().
| glm::vec3 esengine::ecs::ReflectionProbe::halfExtents {200.0f, 200.0f, 200.0f} |
Half the box this probe answers inside, in world units.
Definition at line 42 of file ReflectionProbe.hpp.
Referenced by reflectionprobeApplyJS(), and reflectionprobeToJS().
| resource::EnvironmentHandle esengine::ecs::ReflectionProbe::reflection |
The scene's baked reflections — an .esenv whose atlas holds a column per probe. The baker writes it; invalid means nothing is baked yet, and what stands here reflects the sky as before.
Definition at line 38 of file ReflectionProbe.hpp.
Referenced by reflectionprobeApplyJS(), and reflectionprobeToJS().
| u32 esengine::ecs::ReflectionProbe::slot {0} |
Which column of the atlas holds it. Column 0 is the environment — what a surface outside every probe reflects — so a probe's own is 1 or more, and 0 reads as "not baked yet".
Definition at line 48 of file ReflectionProbe.hpp.
Referenced by reflectionprobeApplyJS(), and reflectionprobeToJS().