Light up a switched-off bulb on webcam video with a live shader

A Redditor had Claude write a WebGL glow shader with sticker and body tracking, test it on fake camera videos it made itself, and deploy it to GitHub Pages.

Done withClaudeinGitHub· Nov 6, 2026

What they did

Reddit user u/ramramlab wanted a webcam effect where an unlit bulb appears to glow, with the light falling on their hands and body. They built it entirely in conversation with Claude. Claude wrote a WebGL shader for the glow, code to find the bulb, and hand and body tracking with MediaPipe, then deployed the page to GitHub Pages. Because it could not see the webcam, Claude made its own synthetic test videos with moving, blurred and distant stickers plus decoys, and ran each change against them in a headless browser before shipping.

How it went

The effect works in real time on the poster's webcam feed, shown in a demo video. An earlier attempt to train a model to find the clear glass bulb failed, since clear glass is hard to track in the dark, so they stuck a green sticker on the bulb instead. They were still asking for ideas to detect a bare bulb.

Worth knowing

It is a visual trick, not a real saving: the title's joke about the electric bill confused some commenters. Having the agent generate its own fake test footage is what let it check vision code it could not see run. A commenter suggested edge detection to find a bulb without a sticker. The post does not say which Claude tool or harness was used.

Try it

With Claude· 5 parts to fill in

Build a browser page that takes my webcam feed and makes [object] look like [effect], following my [hands and body] with MediaPipe and rendering the effect in a WebGL shader. Detect the object using [a coloured sticker or other marker]. Since you cannot see my camera, generate synthetic test videos first, including moving, blurred and distant markers and some decoys, and run every change against them in a headless browser. Only deploy to [GitHub Pages or my host] once all test videos pass, then give me the link and stop.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related