raisin::ReflectionProbePlacementSuggestion
struct · #include <rayrai/ReflectionProbe.hpp>
Probe placement suggested from scene bounds (RayraiWindow::suggestReflectionProbePlacementFromSceneBounds()).
The bounds are the union of the bounding spheres of world objects (halfspaces and heightmaps excluded), custom visuals and instanced visuals.
Public attributes
valid
cpp
bool validFalse when no finite, non-degenerate bounds were found.
position
cpp
glm::vec3 positionCenter of the scene bounds.
radius
cpp
float radiusHalf of the bounds diagonal, metres.
boxProjection
cpp
bool boxProjectionTrue when the bounds have non-zero extent on all three axes.
boxMin
cpp
glm::vec3 boxMinScene bounds minimum corner.
boxMax
cpp
glm::vec3 boxMaxScene bounds maximum corner.
boundedObjectCount
cpp
size_t boundedObjectCountObjects and visuals that contributed to the bounds.
boundsDiagonal
cpp
float boundsDiagonalLength of the bounds diagonal, metres.