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
30 lines
1.1 KiB
Text
30 lines
1.1 KiB
Text
// BAR CURTAIN V — horizontal bars close toward alternating edges: even
|
|
// bars slide in from the top, odd bars from the bottom. SAW staggers
|
|
// each bar's start by a per-bar hash so the curtain does not close in
|
|
// lockstep.
|
|
{
|
|
name: "Bar Curtain V"
|
|
engine: "transition"
|
|
p1: 0.5
|
|
dials: [
|
|
{name: "SOFT", bind: "p0", default: 0.15},
|
|
{name: "BARS", bind: "p1", default: 0.5},
|
|
{name: "SAW", bind: "p2", default: 0.3}
|
|
]
|
|
shader: draw.DrawVjFxDuo {
|
|
trans: fn(uv: vec2, t: float) -> vec4 {
|
|
let n = 6.0 + floor(self.user.y * 14.0)
|
|
let row = floor(uv.y * n)
|
|
let celly = fract(uv.y * n)
|
|
let parity = modf(row, 2.0)
|
|
let local = mix(celly, 1.0 - celly, parity)
|
|
let soft = 0.02 + self.user.x * 0.3
|
|
let hash = fract(sin(row * 12.9898 + 4.0) * 43758.5453)
|
|
let saw = (hash - 0.5) * self.user.z * 0.6
|
|
let tt = t * (1.0 + 2.0 * soft) - soft + saw
|
|
let m = smoothstep(tt - soft, tt + soft, local)
|
|
let c = self.deck_b(uv).mix(self.deck_a(uv), m)
|
|
return vec4(c.xyz, 1.0)
|
|
}
|
|
}
|
|
}
|