Refracting glass for the web

Real glass, rendered live.

Per-pixel refraction, chromatic aberration and a bevelled lens โ€” over a texture you supply, or over the live page with one call to glassify().

๐Ÿ”ฎ

Real refraction

Chromatic aberration, specular and Fresnel โ€” on the GPU.

Tune it live โ†’
๐Ÿช„

glassify() anything

Turn existing DOM into glass, refracting the live page.

See Glassflix โ†’
๐Ÿงฉ

Runs anywhere

React, vanilla, PWA, HTML5 TV / webOS / Tizen.

How to use โ†’
โšก

Open source

One draw call for hundreds of panels. MIT.

View on GitHub โ†’
Two renderers, one API. WebGL for a texture ยท glassify() for live DOM. Ships as ESM, CommonJS and a plain <script> for React, PWAs and HTML5 TV.
renderer: โ€ฆ