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
bool validFalse when no probe has a positive weight.
primaryIndex
size_t primaryIndexIndex of the highest-weight probe.
secondaryIndex
size_t secondaryIndexIndex of the second probe (equals primaryIndex if none).
primaryWeight
float primaryWeightNormalized blend weight of the primary probe.
secondaryWeight
float secondaryWeightNormalized blend weight of the secondary probe; primary + secondary = 1.
strength
float strengthSum of the raw weights, clamped to [0, 1].
primaryBoxProjection
bool primaryBoxProjectionPrimary probe uses box projection.
secondaryBoxProjection
bool secondaryBoxProjectionSecondary probe uses box projection.
primaryProbePosition
glm::vec3 primaryProbePositionPrimary probe capture position.
secondaryProbePosition
glm::vec3 secondaryProbePositionSecondary probe capture position.
primaryBoxMin
glm::vec3 primaryBoxMinPrimary probe box minimum corner.
primaryBoxMax
glm::vec3 primaryBoxMaxPrimary probe box maximum corner.
secondaryBoxMin
glm::vec3 secondaryBoxMinSecondary probe box minimum corner.
secondaryBoxMax
glm::vec3 secondaryBoxMaxSecondary probe box maximum corner.