SDFShape

Read with AI
All docs in one file (llms-full.txt)
gen.sdfshape #Generator #Node
SDFShape

A pure generator that draws one simple shape with an SDF (signed distance function). On top of the shape itself, a glow based on distance is added.

  • Shape — 0–2, default 0. 0 = circle / 1 = square / 2 = triangle (a continuous value that switches at 0.5 and 1.5)
  • Size — the size of the shape. 0.05–0.8, default 0.3
  • Soft — the blur width of the edge. 0.001–0.5, default 0.02
  • PulseAmt — how much the size pulses in time with the phase. 0–1, default 0.2
  • Rotate — rotation (radians). 0–6.2832, default 0
  • Glow — the emission color. Values above 1 (HDR) are allowed
  • Speed — how fast the internal time advances. It becomes the rate at which the phase completes one cycle
  • Seed — not used by this shader

The output resolution is chosen from the dropdown on the node, from FullHD / HD (default) / SD.

The pulse is not a sine but a decay shape (1 + PulseAmt × (1 - Phase)²). It swells to its maximum at the start of the phase and decays from there, which means it hits hard on the downbeat.

Phase uses an external value only when it is connected; when it is not, the fractional part of the internal time (a 0→1 sawtooth) is fed in. Plugging in a tempo-synced LFO or the like lets you make it pulse in time with the beat.

Video

Input ports

Port IDType
Speedfloat
Phasefloat
Seedint

Output ports

Port IDType
Render TextureRenderTexture

Scriptable members

PathType
speedInputfloat
phaseInputfloat
seedInputint

Synapse Apps (scripting)

await synapse.modules.create({ type: "gen.sdfshape" })

Also referenced from