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
34 lines
1.2 KiB
Text
34 lines
1.2 KiB
Text
// EDGE CLONE — a cropped window in the middle of the frame, its border
|
|
// pixels cloned outward to fill the rest: the classic streaked-edge
|
|
// frame, no black bars.
|
|
{
|
|
name: "Edge Clone"
|
|
engine: "screen"
|
|
input0: "test"
|
|
|
|
p0: 0.5 p1: 0.5 p2: 0.5
|
|
dials: [
|
|
{name: "WINDOW", bind: "p0", default: 0.5},
|
|
{name: "ZOOM", bind: "p1", default: 0.5},
|
|
{name: "GLOW", bind: "p2", default: 0.5}
|
|
]
|
|
|
|
stages: [
|
|
{kind: "bloom", threshold: 0.6, strength: 1.05, levels: 2}
|
|
]
|
|
|
|
shader: draw.DrawVjFxScreen {
|
|
fx_color: fn(uv: vec2, content: vec4, cmix: float) -> vec4 {
|
|
let inset = 0.08 + 0.26 * self.user.x
|
|
let lo = vec2(inset, inset)
|
|
let hi = vec2(1.0 - inset, 1.0 - inset)
|
|
let zoom = 0.2 + 1.6 * self.user.y
|
|
let c = clamp(uv, lo, hi) - vec2(0.5, 0.5)
|
|
let cw = c / zoom + vec2(0.5, 0.5)
|
|
let outside = 1.0 - step(lo.x, uv.x) * step(uv.x, hi.x) * step(lo.y, uv.y) * step(uv.y, hi.y)
|
|
let tex = self.tex0.sample_as_bgra(clamp(cw, vec2(0.0, 0.0), vec2(1.0, 1.0)))
|
|
let dim = 1.0 - 0.35 * outside * (0.2 + 1.6 * self.user.z)
|
|
return vec4(tex.xyz * dim, 1.0)
|
|
}
|
|
}
|
|
}
|