Skip to content

raisin::ReflectionProbe ​

struct · #include <rayrai/ReflectionProbe.hpp>

Static local reflection probe registered with RayraiWindow::addReflectionProbe().

Usually produced by RayraiWindow::captureFilteredReflectionProbe(). A probe takes part in selection only when at least one of its cubemaps is non-zero. Its weight at a point is strength* (1 - d /radius) (zero beyond radius), or strength / (1 + d) when radius is 0, where d is the distance to position, or to the box when box projection is enabled and the box is non-degenerate (so d is 0 inside the box).

Public attributes ​

position ​

cpp
glm::vec3 position

Capture position, metres.

radius ​

cpp
float radius

Influence radius, metres; 0 = unbounded inverse-distance falloff.

environmentMap ​

cpp
unsigned int environmentMap

Radiance cubemap (RGBA8 and mipmapped when captured by rayrai).

irradianceMap ​

cpp
unsigned int irradianceMap

Filtered diffuse irradiance cubemap; 0 if not filtered.

prefilteredEnvironmentMap ​

cpp
unsigned int prefilteredEnvironmentMap

GGX-prefiltered specular cubemap; 0 if not filtered.

brdfLut ​

cpp
unsigned int brdfLut

Split-sum BRDF LUT texture; 0 if not generated.

strength ​

cpp
float strength

Weight/intensity multiplier, >= 0.

boxProjection ​

cpp
bool boxProjection

Use box-projected (parallax-corrected) lookups and box-distance weighting.

boxMin ​

cpp
glm::vec3 boxMin

Projection box minimum corner, world space, metres.

boxMax ​

cpp
glm::vec3 boxMax

Projection box maximum corner, world space, metres.

RaiSim — physics for robotics and AI.