MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_dissipation()

void MayaFlux::Buffers::AdvectProcessor::set_dissipation ( float  dissipation)

Set the multiplicative decay applied to the carried value.

Parameters
dissipationFactor in [0, 1]. One preserves the quantity; values below one bleed it off over time, which suits smoke density and temperature. Takes effect next cycle.

Definition at line 63 of file AdvectProcessor.cpp.

64{
65 m_dissipation = dissipation;
66 if (get_volume()) {
67 write_tail();
68 }
69}
void write_tail()
Write time step and dissipation past the shared prefix.
const std::shared_ptr< VolumeGridBuffer > & get_volume() const
The attached volume, or null if attachment failed validation.

References MayaFlux::Buffers::VolumeFieldProcessor::get_volume(), m_dissipation, and write_tail().

+ Here is the call graph for this function: