raisin::FireEffect
struct · #include <rayrai/ExplosionEffects.hpp>
A fire that burns for a while (RayraiWindow::addFireEffect()): flickering flames at its base and a column of smoke that rises, spreads and drifts with the wind.
Public attributes
position
cpp
glm::vec3 positionBase of the fire, world frame (m).
size
cpp
float sizeRadius of the flames (m), > 0; the smoke scales with it.
duration
cpp
float durationSeconds it burns, > 0; the flames die down over the last fifth.
smokeColor
cpp
glm::vec3 smokeColorAlbedo of the smoke (linear RGB).