Repository navigation
ImWeb v0.28.0 — Shader Source
ImWeb v0.28.0 — Shader Source
Released 2026-10-21
The Shader Code (GLSL) shader is a routable source (35): seed Growth with it,
show it on a layer while the same shader also runs as an insert effect. Mix
buses read only by a puller (Growth, Motion, Particles, Volume) now render
instead of handing over a blank picture. The Draw Loops popup is titled,
draggable and closable.
Changelog
Added
- Shader Code as a source (35) (owner: wants the shader usable as a
source, e.g. as Growth's Seed src).Shader Codeis appended to
SOURCE_DEFS, so it is in every source menu — layers, mix buses, Growth
seed/field, captures — while the same shader can still run as an insert at
Master/FG/BG/Displace. One compiled material, two uses a frame; each use
writes its own uniforms. The source output is the raw shader (Blend Mode /
Blend Amt are insert-only). ItsuTextureis the newglsl.srcInput
(Source In: None = black, or any source). It renders into its own
double-buffered target after the mix buses and before the layers, so a
self-read or a loop through Growth sees last frame with no guard; allocated
lazily and gated on the_srcUsed()fixpoint (new puller row), so an
unrouted source costs no pass and no VRAM.glsl.targetgains
Off (source only). Panel row in Sources ▸ Generators opens the Shader
Code workspace. New audittests/audit-glsl-source.mjs(per-use uniform
writes, own back buffer, render order, gate).
Fixed
- A mix bus read only by Growth, Motion, Particles or Volume now renders.
Bus need was worked out from layers and bus→bus reads alone, before the
pullers were, so Growth seeded from Mix 1 (or Motion watching Mix 2, a
particle mask of Mix 3) got a bus nobody drew — black, silently. The buses
are now rows of the same puller closure in main.js, so a bus read by a
needed puller is needed and vice versa, to any depth. Guarded by
tests/audit-mixbus-pullers.mjs, which runs the real block from main.js.
Changed
- Draw loops popup can be moved and closed (owner: "what is the Loop
l1 l2 l3 l4 … how do i close it? it should be dragable and have an x").
The panel that appears while drawing on the main canvas (⊕ Canvas) is now
titled DRAW LOOPS, drags by its header (position remembered per browser),
and ✕ hides it until the next time ⊕ Canvas is entered.