restoreToward

A correction applied after every solve: re-seed a color that the solve slowly blurs away.

restoreToward(kernel: FluidKernel): FluidSolveStage

Import sim from shaders/std and use sim.fluids.restoreToward.

Parameters

NameTypeNotes
kernelFluidKernel

Example

solve: [restoreToward(colorRestoreKernel)]

See also

  • ambientForce — A force applied to the whole field before every solve: a turbulence field, a steady wind.
  • fluidSim — A fluid the engine solves every frame.

Used by

Fog