Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OverShifted/LiquidGlass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liquid glass

A shader inspired by Apple's Liquid Glass design language.

liquid-glass-newspaper.mp4

It renders a squircle with a shader that approximates a signed distance field to emulate refraction. With some blur, noise and a bit of glow, it ends up looking somewhat like glass.

Building

Make sure to recursively initialize submodules. Either clone with:

git clone https://github.com/OverShifted/LiquidGlass --recursive

or run

git submodule update --init --recursive

after cloning normally.

Then you just need to build the CMake project by running ./build.sh, or executing these commands:

cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
cmake --build build

Screenshots

Seasons: spring summer autumn winter

Full effect: Full effect

Without blur or noise: Just refraction

Without blur or noise, but refracted in the reverse direction: Just refraction, but inverted

Releases

No releases published

Packages

No packages published