Skip to main content

Module fragment_field

Module fragment_field 

Source
Expand description

Fragment-field scene: a fullscreen Shadertoy-style domain-warped field, colored through the shared palette LUT (ADR-0021). The first “generative-art”- tier built-in and one of the two preset-driven systems (ADR-0002 layers 1-2).

Its look is a set of named parameters — warp, hue, zoom, glow, flash, plus the shared color knobs color_span/color_center/saturation (Plan 0020) — that a preset binds to expressions over the audio analysis (Plan 0003 Phase 5). With no preset the parameter defaults render a gentle idle field. The scene reads no audio directly; all reactivity flows through the parameter values.

Color: the field level indexes a 256-entry gradient LUT (the preset’s [palette], default spectrum = the exact prior cosine) instead of a hardcoded palette(). color_span sets how much of the gradient the field spans (replacing the old fixed field*0.6), color_center/hue slide the window, and saturation desaturates toward luma — all bindable.

Structs§

FragmentFieldScene
Fullscreen domain-warped fragment field, driven by named preset parameters.

Constants§

PARAMS
The parameter names this scene consumes — the vocabulary a preset binding is checked against at load, so a typo is warned about instead of silently doing nothing (ADR-0020). Keep in sync with set_param below; the declared_params_match_set_param guard in core/tests/preset.rs fails if the two drift.