Skip to content

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 valid

False when no finite, non-degenerate bounds were found.

position ​

cpp
glm::vec3 position

Center of the scene bounds.

radius ​

cpp
float radius

Half of the bounds diagonal, metres.

boxProjection ​

cpp
bool boxProjection

True when the bounds have non-zero extent on all three axes.

boxMin ​

cpp
glm::vec3 boxMin

Scene bounds minimum corner.

boxMax ​

cpp
glm::vec3 boxMax

Scene bounds maximum corner.

boundedObjectCount ​

cpp
size_t boundedObjectCount

Objects and visuals that contributed to the bounds.

boundsDiagonal ​

cpp
float boundsDiagonal

Length of the bounds diagonal, metres.

RaiSim — physics for robotics and AI.