Skip to content

raisin::LocalFogVolume ​

struct · #include <rayrai/Weather.hpp>

Spherical local fog region evaluated in the post-process pass.

Values are sanitized by RayraiWindow::addLocalFogVolume() (ranges noted per field).

Public attributes ​

center ​

cpp
glm::vec3 center

World-space center, metres.

radius ​

cpp
float radius

Sphere radius, metres (>= 0.001).

color ​

cpp
glm::vec3 color

Linear RGB fog color (>= 0).

density ​

cpp
float density

Signed density. Positive values add local fog; negative values carve clearer regions from global/local fog in a bounded postprocess approximation. Clamped to [-1, 1].

edgeFade ​

cpp
float edgeFade

Fraction of the radius over which density fades out at the rim, [0.001, 0.99].

noiseScale ​

cpp
float noiseScale

Spatial frequency of the density noise, [0.001, 128].

noiseStrength ​

cpp
float noiseStrength

Noise modulation amount, [0, 1]; 0 = uniform density.

RaiSim — physics for robotics and AI.