Menu

Why CSS backdrop-filter Can't Do Real Apple Liquid Glass — and How to Build It in One 60fps WebGL2 File
📰

Why CSS backdrop-filter Can't Do Real Apple Liquid Glass — and How to Build It in One 60fps WebGL2 File

DEV Community: css·Vane·about 6 hours ago
#anhSsOjx
#devtocss#devto#dev#version#vec2
Long article (989 words) — no AI summary yet.
Reading 0:00
15s threshold

If you have tried recreating Apple's Liquid Glass aesthetic with CSS backdrop-filter: blur() , you already know the result: it looks like frosted plastic, not solid optical glass.

The reason is physical, not stylistic. backdrop-filter applies a uniform Gaussian blur across a flat rectangle. Real glass bends light selectively along its curved bezel, subtly magnifies whatever passes under its core, splits RGB wavelengths near the rim, and catches sharp specular highlights at grazing angles.

While building Dinggao (a library of 126 single-file, zero-dependency UI motion references), we needed a floating Liquid Glass Dock that:

Runs locked at 60fps on desktop and mobile.

Uses zero external dependencies (no Three.js, no React runtime—just one standalone HTML file).

Responds instantaneously to pointer/touch movement and returns smoothly to a deterministic loop.

Here is the exact architecture and WebGL2 fragment shader we used.

1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.