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 centerWorld-space center, metres.
radius
cpp
float radiusSphere radius, metres (>= 0.001).
color
cpp
glm::vec3 colorLinear RGB fog color (>= 0).
density
cpp
float densitySigned 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 edgeFadeFraction of the radius over which density fades out at the rim, [0.001, 0.99].
noiseScale
cpp
float noiseScaleSpatial frequency of the density noise, [0.001, 128].
noiseStrength
cpp
float noiseStrengthNoise modulation amount, [0, 1]; 0 = uniform density.