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
glm::vec3 positionCapture position, metres.
radius
float radiusInfluence radius, metres; 0 = unbounded inverse-distance falloff.
environmentMap
unsigned int environmentMapRadiance cubemap (RGBA8 and mipmapped when captured by rayrai).
irradianceMap
unsigned int irradianceMapFiltered diffuse irradiance cubemap; 0 if not filtered.
prefilteredEnvironmentMap
unsigned int prefilteredEnvironmentMapGGX-prefiltered specular cubemap; 0 if not filtered.
brdfLut
unsigned int brdfLutSplit-sum BRDF LUT texture; 0 if not generated.
strength
float strengthWeight/intensity multiplier, >= 0.
boxProjection
bool boxProjectionUse box-projected (parallax-corrected) lookups and box-distance weighting.
boxMin
glm::vec3 boxMinProjection box minimum corner, world space, metres.
boxMax
glm::vec3 boxMaxProjection box maximum corner, world space, metres.