Squashed from work; the fine-grained history is under tag archive/work-2026-08-26: - vjfx: 104 new presets — the transition lane fills out and the screen family goes wide - vjfx: three lanes land — engine hooks + hold stage, the videomesh engine, and the audio picture - vj: the thumbnail pipeline becomes one honest machine, and effects go livecodable - vj: thumbnails become mp4 — hardware-coded sheets at measured-4K cells, and the bake stops racing the GPU - store: the ceremony dies — batch publish, one transaction, and the engine stops re-reading its own log - store: the ceremony dies — batch publish, one transaction, and the engine stops re-reading its own log - vj: the console grows real transports, and the deck stops lying about reverse - vj: reverse earns a memory, and the effects stop aging - fab: a 3D creation shell and the viewer built on it
28 lines
1.2 KiB
Text
28 lines
1.2 KiB
Text
// RIPPLE WIPE — an interference field of layered sine and cosine ripples
|
|
// sweeps deck B in instead of a straight edge: pixels caught in a trough
|
|
// reveal first, pixels riding a crest hold onto deck A longest. RATE
|
|
// sets the ripple frequency, FLIP inverts which pixels go first.
|
|
{
|
|
name: "Ripple Wipe"
|
|
engine: "transition"
|
|
dials: [
|
|
{name: "SOFT", bind: "p0", default: 0.12},
|
|
{name: "RATE", bind: "p1", default: 0.4},
|
|
{name: "FLIP", bind: "p2", default: 0.0}
|
|
]
|
|
shader: draw.DrawVjFxDuo {
|
|
trans: fn(uv: vec2, t: float) -> vec4 {
|
|
let p = vec2((uv.x - 0.5) * self.aspect(), uv.y - 0.5)
|
|
let r = length(p)
|
|
let freq = 4.0 + self.user.y * 16.0
|
|
let f1 = sin(r * freq * 6.283 - p.x * freq * 2.0)
|
|
let f2 = cos((p.x + p.y) * freq * 3.0)
|
|
let mut field = clamp(f1 * 0.3 + f2 * 0.3 + 0.5, 0.0, 1.0)
|
|
field = mix(field, 1.0 - field, step(0.5, self.user.z))
|
|
let soft = 0.01 + self.user.x * 0.3
|
|
let tt = t * (1.0 + 2.0 * soft) - soft
|
|
let m = smoothstep(tt - soft, tt + soft, field)
|
|
return self.deck_b(uv).mix(self.deck_a(uv), m)
|
|
}
|
|
}
|
|
}
|