i4w7w4a/liquid_prnc_glass — explained in plain English
Analysis updated 2026-05-18
Apply a real optical glass-refraction effect to a video or image directly in the browser.
Tune parameters like refraction strength, color dispersion, and edge darkening interactively.
Export the finished effect as a recorded video or a precise frame-by-frame render.
Copy the generated Markdown summary of settings to reuse the effect in another project.
| i4w7w4a/liquid_prnc_glass | qunabu/gravity | 0xbennie/binance-smart-money-tracker | |
|---|---|---|---|
| Stars | 45 | 45 | 44 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | moderate | easy | moderate |
| Complexity | 3/5 | 3/5 | 3/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires installing dependencies with npm and starting a local dev server, or use the hosted live version.
Liquid Prnc Glass is a browser-based laboratory for producing and tuning a specific visual effect: optical glass refraction applied to the edges of a video or image. The effect makes it look as though the content is being viewed through a piece of curved glass, with light bending and colors separating around the borders. The README is explicit that this is not a CSS blur or filter trick, the effect comes from custom GPU shader code that actually simulates how light refracts. The project is built with React and TypeScript and runs in the browser using WebGL, which is a browser standard for running graphics programs on the GPU. The shader is written in GLSL, which is the language used to write programs that run directly on graphics hardware. Three.js, a popular JavaScript library for 3D graphics, handles the rendering pipeline. A video or image is uploaded as a texture to the GPU, and the GLSL code bends the pixels around the edges according to the settings you choose. The lab interface exposes a detailed set of controls for tuning the appearance. These include parameters for refraction strength, edge width, corner roundness, color dispersion (the separation of red, green, and blue channels, which mimics how real glass splits light), edge darkening, and highlights. There are also flow controls that add animated movement to the effect over time. Once you have the settings tuned the way you want, the lab offers two export options. You can record the live canvas directly as it plays, or use a more precise rendering path that builds the video frame by frame using browser video encoding tools for a deterministic result. There is also a feature that generates a Markdown document summarizing the settings and how to copy the effect component into another project. To run it locally, you install dependencies with npm and start the development server. A live version is available online at liquid-prince.online.
A browser lab for creating a realistic glass-refraction visual effect on video and images using GPU shaders.
Mainly TypeScript. The stack also includes TypeScript, React, WebGL.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.