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

◆ set_rate()

void MayaFlux::Buffers::DiffuseProcessor::set_rate ( float  rate)

Set the diffusion rate.

Parameters
rateViscosity for velocity, or a blur rate for a scalar. Zero leaves the field unchanged. Takes effect next cycle.

Definition at line 52 of file DiffuseProcessor.cpp.

53{
54 m_rate = rate;
55 if (get_volume()) {
57 }
58}
float rate
void write_coefficient()
Write the product of rate and time step into word seven.
const std::shared_ptr< VolumeGridBuffer > & get_volume() const
The attached volume, or null if attachment failed validation.

References MayaFlux::Buffers::VolumeFieldProcessor::get_volume(), m_rate, rate, and write_coefficient().

+ Here is the call graph for this function: