flowWarp

A slowly folding 2D offset to add to pattern coordinates, for molten or wind-blown motion.

flowWarp(warpInput: Expr, flowT: Expr): Expr

Import materials from shaders/std and use materials.flowWarp.

warpInput is the pattern coordinate scaled by about 0.6, flowT the layer's clock times a speed. Add the result to the coordinate before sampling noise.

Parameters

NameTypeNotes
warpInputExpr
flowTExpr

Example

const q = add(pat, mul(flowWarp(mul(pat, 0.6), flowT), u.warp))

See also

  • surfaceNoiseAt — surfaceNoise at a 2D point you already hold.
  • perlinSlope — The slope of smooth noise at a point, for wavy or molten relief.

Used by

LiquidMetal, Water