Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
ReflectionStore.hpp File Reference

Which baked reflection a point stands in — the specular half of the question ProbeStore answers for irradiance. More...

#include "../../core/Types.hpp"
#include "../../core/Hash.hpp"
#include "../../core/Revision.hpp"
#include "./LightConstants.hpp"
#include <glm/glm.hpp>
#include <vector>
Include dependency graph for ReflectionStore.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  esengine::ReflectionStore
 The frame's reflection probes, and the lookup that picks one. More...
struct  esengine::ReflectionStore::Probe
 One probe: the world box it answers inside, and its atlas column. More...

Namespaces

namespace  esengine

Detailed Description

Which baked reflection a point stands in — the specular half of the question ProbeStore answers for irradiance.

The frame's ReflectionProbe components as boxes plus the column each one owns in the scene's atlas. Filled during collection and read during it; nothing here outlives the frame that gathered it.

ONE atlas per frame, and the environment is column 0 of it. That is what keeps a reflection a per-instance number instead of a per-draw texture bind — a bind is what stopped a hundred objects in a room from merging into one draw.

Definition in file ReflectionStore.hpp.