Skip to content

bluesad/liquid-glass-studio

 
 

Repository files navigation

🔮 Liquid Glass Studio

English | 简体中文

The ultimate Apple Liquid Glass UI replica for the Web, powered by WebGL2 and shaders. Includes most Liquid Glass features with fine-grained controls for detailed customization.

Online Demo

https://liquid-glass-studio.vercel.app/

ScreenShots

Features

✨ Apple Liquid Glass Effects:

  • Refraction
  • Dispersion
  • Fresnel reflection
  • Superellipse shapes
  • Blob effect (shape merging)
  • Glare with customizable angle
  • Gaussian blur masking
  • Anti-aliasing

⚙️ Interactive Controls:

  • Comprehensive real-time parameter adjustments via an intuitive UI

🖼 Background Options:

  • Support for both images and videos as dynamic backgrounds

🎞 Animation Support:

  • Spring-based shape animations with configurable behavior

Technical Highlights

  • WebGL-based rendering for high-performance graphics
  • Multipass rendering for high-quality & performant Gaussian blur
  • Using SDF Defined shapes and smooth merge function
  • Custom shader implementations for realistic glass effects
  • Custom Leva UI components for intuitive parameter controls

Getting Started

Prerequisites

  • Node.js (latest LTS version recommended)
  • pnpm package manager

Installation

# Install dependencies
pnpm install

# Start development server
pnpm dev

# Build for production
pnpm build

TODO

  • More Glare Controls (hardness / color / size etc.)
  • Custom Background
  • Self-illumination
  • HDR illumination
  • Glass Presets
  • Control parameter import / export
  • Render Step view to show intermediate results
  • UI Content inside of shape

Credits

Thanks to the following resources and inspirations:

License

MIT License

About

🔮 The ultimate Apple Liquid Glass UI replica for the Web, powered by WebGL2 and shaders.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 56.6%
  • GLSL 33.8%
  • SCSS 8.7%
  • Other 0.9%