liquid-glass-optics
Skill0 starsChanged 7 days agoMITView on GitHub
Use for Liquid Glass rendering strategy, original SVG displacement/specular maps, backdrop-filter url(), WebGL2 refraction, Safari true-refraction options, reflective rims, standalone showcase tuning, and optical behavior verification.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/llms.txtllms.txt
- liquid-glass-suiteSkill
- liquid-glass-debugSkill
- liquid-glass-nativeSkill
- liquid-glassSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
WebGL2: use ../../shared/assets/webgl-glass.js with an explicit origin-clean image/canvas/video texture or a WebKit true-refraction brief.
- Distinctive: line 39
Check the seven original preset bundles exactly and require map dimensions of 2× CSS geometry.
- Distinctive: line 41
Test center R/G neutrality and actual optical changes without using an external comparison implementation.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Liquid Glass optics
Open ../../shared/assets/showcase.html directly from disk. It is the restored original standalone showcase: no server, build, network, framework, or external assets are needed. Editable optics, controller, template, and plates are in ../../shared/assets/showcase/.
Restored original model
The showcase preserves its original surface profile, Snell-derived displacement map, directional specular map, seven preset bundles, 2× map sampling, and historical linear RGB dim. The default drop-in retains its separate strategy-1 SVG lens/capability-gate implementation. Preserve this model and its preset values; do not substitute a different optical engine.
The neutral development notice is in ../../NOTICE. Standalone means the showcase is self-contained and works offline.
Route the problem
| Need | Read |
| Content filter vs SVG backdrop vs WebGL2 vs frost | ../../shared/references/01-strategy-picker.md |
| Original displacement/specular maps and SVG graph | ../../shared/references/04-svg-filter-graph.md |
| Production wash, rim weighting, theme tokens, geometry faults | ../../shared/references/03-dim-and-rim.md |
| Original WebGL2 API, explicit textures, hybrid swap and cleanup | ../../shared/references/07-webgl-shader.md |
| Standalone controls, exact original presets, exports and diagnostic API | ../../shared/references/14-showcase.md |
| Safari scoped bend: measured position, caches, compositing and OS-material conflict | ../../shared/references/06-safari-webkit.md |
| Map budgets, idle/viewport gates, scroll synchronization | ../../shared/references/08-performance.md |
| Transform arming, filter-carrier motion and origin | ../../shared/references/09-motion.md |
Two application paths only
- Default:
../../shared/assets/liquid-glass.css+.js, normally throughliquid-glass. Its strategy-1 lens and conservative gate add optics only where supported; fallback remains usable. - WebGL2: use
../../shared/assets/webgl-glass.jswith an explicit origin-clean image/canvas/video texture or a WebKit true-refraction brief. It cannot read arbitrary DOM. Paint below content and restore CSS on failure/teardown.
The standalone renderer global is window.UltimateLiquidGlassRenderer; its diagnostic page API is window.UltimateLiquidGlass. Shared maps do not prove cross-renderer pixel identity.
Verify the restored behavior
- Record renderer, browser, surface, width, height, radius, bezel, scale, light angle/opacity/saturation, dim, background, and DPR.
- Check the seven original preset bundles exactly and require map dimensions of 2× CSS geometry.
- Exercise every surface/control, real CSS/SVG and WebGL2 drawing, split mode, pointer/keyboard/reset, URL/state validation, exports, and fallbacks.
- Test center R/G neutrality and actual optical changes without using an external comparison implementation. Do not infer paint from labels or syntax support.
node scripts/build-showcase.mjs --check
npm testFor observed failures, switch to liquid-glass-debug rather than tuning blindly.
Part of liquid-glass-suite — install the suite, not this folder alone.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

