splat.relief

Particles standing on an image, drawn in the child's color through a camera.

splat.relief: (
  layout: ReliefRenderLayout,
  cfg: ReliefSplatConfig,
) => (x: number, y: number) => void

Import sim from shaders/std and use sim.agentRender.splat.relief.

Dispatch it over a 2D grid.

Example

splat: {kernel: splat.relief(fieldLayout, {shape: 'dot', splatRCap: 24, aaW: 0.75, minAlpha: 0.02, fp: 1024, wobbleFreq: 1.3, perspK: 0.9, name: 'reliefSplat'}), threads: 'grid'}

See also

  • resolve.weightedColor — The average of the colors that landed, nearer particles first.
  • renderAgents.relief — Particles standing on an image, seen through a camera: each carries the child's color at its home, and nearer particles win the color where they overlap.