ambientForce
A force applied to the whole field before every solve: a turbulence field, a steady wind.
ambientForce(kernel: FluidKernel): FluidSolveStage
Import sim from shaders/std and use sim.fluids.ambientForce.
Parameters
| Name | Type | Notes |
|---|---|---|
kernel | FluidKernel |
Example
solve: [ambientForce(turbulenceKernel)]
See also
restoreToward— A correction applied after every solve: re-seed a color that the solve slowly blurs away.fluidSim— A fluid the engine solves every frame.