# VHSynth > VHSynth is a real-time WebGPU shader by Arnav Batra (https://arnavbatra.in). It renders black liquid chrome with multi-pass bloom and an 80s VHS film look, plus a smoky cursor blob that turns the picture into pixels and text characters. It runs live in the browser on the visitor's GPU. The site also explains, in plain English, how the shader works. - Live site: https://vhsynth.vercel.app - Source code: https://github.com/arnavbatra9696/vhsynth - Author: Arnav Batra, https://arnavbatra.in - Tech: WebGPU, WGSL, plain JavaScript, no libraries, no build step. Hosted on Vercel. ## The page - [Shader](https://vhsynth.vercel.app/): the live canvas. Sliders for bloom, threshold, spread, hue, saturation and blob shift. A WGSL editor to change the shader while it runs. PNG export. H hides the UI. M toggles optional background music. - [How it works](https://vhsynth.vercel.app/#how): a pan-and-zoom whiteboard that explains each step of the pipeline for non-programmers, with the real code for each step. - [Code](https://vhsynth.vercel.app/#code): the shader source the GPU receives, with comments removed. ## How the shader works 1. Scene pass. A full-screen fragment shader builds a height field of round fibres, warped into slow S-curves by fractal noise (fbm) and pulled gently toward the cursor. Chrome has no colour of its own, so each pixel reflects a fake studio: a nearly black room with a few narrow light strips. The reflection is sampled at 7 wavelengths (spectral dispersion), which keeps white cores white but fringes sharp highlights with orange and blue. A thin-film sheen adds a slight rainbow tint. The pass writes HDR colour into an rgba16float texture, so highlights can be brighter than white. 2. Cursor blob. The page sends the last 8 cursor positions to the shader as a uniform array. The shader draws a blob with a shrinking tail along that trail. Inside the blob the image is pixelated into a mosaic at the rim and drawn as ASCII-style glyphs in the core, with a smoky noise edge, a soft halo, and a tint that shifts the blacks (the "blob shift" slider). 3. Bloom. A bright pass with a soft knee keeps only light above the threshold. That image is downsampled through 6 mip levels with a 13-tap filter, then upsampled and added back with a tent filter, which gives a wide, smooth glow. 4. Finish pass. Tonemapping, an 80s colour grade (softer contrast, lower saturation, split-toning, lifted purple blacks), hue rotation and saturation, film grain that changes 24 times a second, scanlines, and an ordered Bayer dither to hide colour banding. ## Source files - [site/shader.js](https://github.com/arnavbatra9696/vhsynth/blob/main/site/shader.js): the WGSL shaders (scene, bloom, finish), the WebGPU renderer, and the UI loop. Default values are in DEFAULTS; the look is set by constants at the top of the scene shader (FREQ, SPEED, BEND, SPLIT, SHEEN, CELL, LENS, SMOKE, HALO, BLUR, BLOB_TINT). - [site/index.html](https://github.com/arnavbatra9696/vhsynth/blob/main/site/index.html): page markup, styles, tabs, the whiteboard and the music player. - [site/cursor.js](https://github.com/arnavbatra9696/vhsynth/blob/main/site/cursor.js): the custom cursor. - [tools/](https://github.com/arnavbatra9696/vhsynth/tree/main/tools): headless renders of the real shader with Dawn (WebGPU for Node) and sharp, used to make the site's images. ## Browser support Needs WebGPU: recent Chrome or Edge, Safari 18 or later, or Firefox with WebGPU enabled. Without it, the page shows a still frame and a link to the explainer.