Skip to content

raisin::ReflectionProbeBlend ​

struct · #include <rayrai/ReflectionProbe.hpp>

Result of RayraiWindow::selectReflectionProbeBlend() for one sample position.

Picks the one or two highest-weight probes (count limited by RenderQualitySettings::maxReflectionProbesPerSelection, probes at or below minReflectionProbeWeight ignored). When only one probe is selected the secondary entries repeat the primary probe with zero weight.

Public attributes ​

valid ​

cpp
bool valid

False when no probe has a positive weight.

primaryIndex ​

cpp
size_t primaryIndex

Index of the highest-weight probe.

secondaryIndex ​

cpp
size_t secondaryIndex

Index of the second probe (equals primaryIndex if none).

primaryWeight ​

cpp
float primaryWeight

Normalized blend weight of the primary probe.

secondaryWeight ​

cpp
float secondaryWeight

Normalized blend weight of the secondary probe; primary + secondary = 1.

strength ​

cpp
float strength

Sum of the raw weights, clamped to [0, 1].

primaryBoxProjection ​

cpp
bool primaryBoxProjection

Primary probe uses box projection.

secondaryBoxProjection ​

cpp
bool secondaryBoxProjection

Secondary probe uses box projection.

primaryProbePosition ​

cpp
glm::vec3 primaryProbePosition

Primary probe capture position.

secondaryProbePosition ​

cpp
glm::vec3 secondaryProbePosition

Secondary probe capture position.

primaryBoxMin ​

cpp
glm::vec3 primaryBoxMin

Primary probe box minimum corner.

primaryBoxMax ​

cpp
glm::vec3 primaryBoxMax

Primary probe box maximum corner.

secondaryBoxMin ​

cpp
glm::vec3 secondaryBoxMin

Secondary probe box minimum corner.

secondaryBoxMax ​

cpp
glm::vec3 secondaryBoxMax

Secondary probe box maximum corner.

RaiSim — physics for robotics and AI.