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

◆ set_density_gain()

void MayaFlux::Buffers::BuoyancyProcessor::set_density_gain ( float  gain)

Set the coefficient on the density value.

Parameters
gainMultiplier. Zero disables the fall term.

Definition at line 129 of file BuoyancyProcessor.cpp.

130{
131 m_density_gain = gain;
132 if (get_volume()) {
133 write_tail();
134 }
135}
void write_tail()
Write every parameter 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_density_gain, and write_tail().

+ Here is the call graph for this function: