Phosphene is an Electron + Three.js/WebGL VJ instrument driving procedural, audio-reactive scenes onto a projector during a live DJ set. Its GLSL scenes bind to a versioned uniform contract, kept apart from the shell for future native ports.
Phosphene
Phosphene (GSV-A6) is a VJ instrument for live performance, in GSV's media-ecology pace-layer: it reads a live audio stream, derives a small set of musical parameters from it, and renders procedural scenes (flow fields, raymarched fractals, reaction-diffusion, wireframe landscapes) fullscreen on a projector while a performer mixes live. It is implemented as an Electron plus Three.js/WebGL application, but its real subject is a portability boundary rather than the app shell: the creative core, a set of GLSL scenes plus a documented uniform contract, is kept strictly independent of Electron so it can later be reimplemented natively in Swift+Metal or Rust+wgpu, while the Electron windowing, IPC, and React control surface are treated as disposable scaffolding around that core. The architecture splits into two windows over one authoritative source of truth: an output window that owns both the WebGL context and audio capture (so nothing crosses an IPC boundary on the render hot path), and a control window that is a React remote sending intent-commands only (e.g. a crossfade nudge by delta, never a direct set of an absolute value) to a main process that holds the sole-writer ShowState. The render loop is a single dt-clamped requestAnimationFrame: decks render scenes into HalfFloat targets, a crossfader composites them, and one shared post-processing chain finishes the frame; a deck is withheld from the crossfade until it has rendered a minimum number of frames and is considered warm, which is the specific mechanism that eliminates the black-flash otherwise seen on cut-in — the source of the project's tagline about never dropping to black. Phosphene connects to GSV's intercognition-jazz pace-layer as well, and its planning material references Mind State and palettice as adjacent, separately confirmed GSV projects. Status: a vetted implementation plan exists with orthogonal-review agents having assessed it, and core architectural decisions (two-window split, intent-command IPC, warm-deck compositing) are specified in detail, though the material provided does not confirm a fully shipped, performance-tested build.