Skip to content

raisin::RayraiWindow::ReflectionProbeBlend ​

struct · #include <rayrai/RayraiWindow.hpp>

Result of selectReflectionProbeBlend(): up to two probes and their normalized weights.

Public attributes ​

valid ​

cpp
bool valid

True when at least one probe influences the position.

primaryIndex ​

cpp
size_t primaryIndex

Index of the highest-weight probe.

secondaryIndex ​

cpp
size_t secondaryIndex

Index of the second probe, or primaryIndex when there is none.

primaryWeight ​

cpp
float primaryWeight

Normalized weight of the primary probe.

secondaryWeight ​

cpp
float secondaryWeight

Normalized weight of the secondary probe (0 when unused).

strength ​

cpp
float strength

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

primaryBoxProjection ​

cpp
bool primaryBoxProjection

True when the primary probe has a valid projection box.

secondaryBoxProjection ​

cpp
bool secondaryBoxProjection

True when the secondary probe has a valid projection box.

primaryProbePosition ​

cpp
glm::vec3 primaryProbePosition

Primary probe position.

secondaryProbePosition ​

cpp
glm::vec3 secondaryProbePosition

Secondary probe 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.