|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MayaFlux::Buffers::BuoyancyProcessor::BuoyancyProcessor | ( | std::string | temperature_field, |
| std::string | density_field, | ||
| std::string | velocity_field, | ||
| const glm::vec3 & | direction, | ||
| const std::string & | shader_path | ||
| ) |
Construct a buoyancy stage.
| temperature_field | Name of the scalar field driving rise. Must have stride sizeof(float). |
| density_field | Name of the scalar field driving fall. Must have stride sizeof(float). May equal temperature_field. |
| velocity_field | Name of the field accumulated into. Must have stride sizeof(glm::vec4) and be double-buffered. |
| direction | Force axis and magnitude in world units. |
| shader_path | Path to the compute shader. |
Definition at line 40 of file BuoyancyProcessor.cpp.
References MayaFlux::Buffers::VolumeFieldProcessor::add_swap_field(), and m_velocity_field.
Here is the call graph for this function: