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
| Name | Type | Notes |
|---|---|---|
kernel | FluidKernel |
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.