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

NameTypeNotes
kernelFluidKernel

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.

Used by

Fog