raisin::RayraiWindow::ReflectionProbeBlend
struct · #include <rayrai/RayraiWindow.hpp>
Result of selectReflectionProbeBlend(): up to two probes and their normalized weights.
Public attributes
valid
cpp
bool validTrue when at least one probe influences the position.
primaryIndex
cpp
size_t primaryIndexIndex of the highest-weight probe.
secondaryIndex
cpp
size_t secondaryIndexIndex of the second probe, or primaryIndex when there is none.
primaryWeight
cpp
float primaryWeightNormalized weight of the primary probe.
secondaryWeight
cpp
float secondaryWeightNormalized weight of the secondary probe (0 when unused).
strength
cpp
float strengthSum of raw weights, clamped to [0, 1].
primaryBoxProjection
cpp
bool primaryBoxProjectionTrue when the primary probe has a valid projection box.
secondaryBoxProjection
cpp
bool secondaryBoxProjectionTrue when the secondary probe has a valid projection box.
primaryProbePosition
cpp
glm::vec3 primaryProbePositionPrimary probe position.
secondaryProbePosition
cpp
glm::vec3 secondaryProbePositionSecondary probe position.
primaryBoxMin
cpp
glm::vec3 primaryBoxMinPrimary probe box minimum corner.
primaryBoxMax
cpp
glm::vec3 primaryBoxMaxPrimary probe box maximum corner.
secondaryBoxMin
cpp
glm::vec3 secondaryBoxMinSecondary probe box minimum corner.
secondaryBoxMax
cpp
glm::vec3 secondaryBoxMaxSecondary probe box maximum corner.