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().
Per-pixel refraction, chromatic aberration and a bevelled lens โ over a texture you
supply, or over the live page with one call to glassify().
Chromatic aberration, specular and Fresnel โ on the GPU.
Turn existing DOM into glass, refracting the live page.
React, vanilla, PWA, HTML5 TV / webOS / Tizen.
One draw call for hundreds of panels. MIT.
glassify() for live DOM.
Ships as ESM, CommonJS and a plain <script> for React, PWAs and HTML5 TV.