The wiring a first Syn raymarcher actually needs — map()/getNorm/getLight/renderMain — with the distance functions credited to Inigo Quilez and the lighting scaffold self-forked from a personal Shadertoy.
Synesthesia Functions
Shader code shared by the Synesthesia community.
Do you have a favorite function you use all the time? share it!
Shift + / to search from anywhere
Tracks the previous frame's click position so you can compute a per-frame drag delta — the basis for orbit-camera and paint-style mouse interaction in a .synScene.
Round-trip between cartesian and polar (angle, radius) coordinates — the inverse-included counterpart to the built-in _toPolar.
A 0→1 ramp that resets exactly on a musical bar boundary, the backbone of seamless tempo-synced loops.
The wiring a first Syn raymarcher actually needs — map()/getNorm/getLight/renderMain — with the distance functions credited to Inigo Quilez and the lighting scaffold self-forked from a personal Shadertoy.
Tracks the previous frame's click position so you can compute a per-frame drag delta — the basis for orbit-camera and paint-style mouse interaction in a .synScene.
Domain repetition clamped to a [lima, limb) range instead of tiling forever, for repeated SDF patterns that stop at scene bounds.
Round-trip between cartesian and polar (angle, radius) coordinates — the inverse-included counterpart to the built-in _toPolar.
Weighted and unweighted random pickers for scene variation — including an exponential pick that favors the front of the list, for "usually subtle, occasionally wild" parameter choices.