03 / 126
FreeNew2026-12-04

WebGL2 Liquid Glass Segmented Capsule

WebGL2 segmented control with crisp RGB chromatic dispersion (1.12/1.00/0.88) and liquid lensing across tabs.

Live Controls (Synced to Export)
10×0.1

Your live accent color and headline tweaks are baked in. Paste into Gemini, Grok Build (ex-Cursor), Claude, or ChatGPT for 90%+ faithful reproduction.

Use Cases

Top-bar navigation switches, view-mode selectors (Monthly / Annual, Preview / Code), and settings-panel segmented controls.

Key Implementation Notes

- Uses a WebGL2 fragment shader with calibrated three-channel refractive indices (1.12 / 1.00 / 0.88) to simulate subtle optical dispersion as a solid glass slider glides over dark typography.

- Pre-bakes underlying label typography into a crisp HiDPI static texture for razor-sharp edges at minimal runtime cost.