splat.pointWorld
Round motes with a live softness, placed, brightened and sized by pointSlot parts.
splat.pointWorld: (
layout: PointWorldSplatLayout,
cfg: PointWorldSplatConfig,
) => (i: number) => void
Import sim from shaders/std and use sim.agentRender.splat.pointWorld.
Example
splat: {kernel: splat.pointWorld(simLayout, {shape: 'glow', res: 1024, place: pointSlot.orbitalPlace(simLayout, {radius: 0.035, rate: 1.4}), brightness: pointSlot.twinkleBrightness(simLayout, {freq: 2}), bodyRadius: pointSlot.presenceRadius(simLayout), name: 'motesSplat'}), threads: 'agents'}
See also
resolve.tint— One color, with an alpha from coverage.pointSlot— The three parts a round mote is drawn with: where it sits (orbitalPlace), how bright it is (twinkleBrightness) and how big it is (presenceRadius).renderAgents.pointWorld— Round motes with no heading, drawn in one tint with a live softness.