#how to 2d glass effect

9 messages · Page 1 of 1 (latest)

spice drift
rose tartan
#

First shader has a blur part and a distortion part. The blur part is the LiquidGlass function that uses radial blur, the distortion part is on line 60 that just displaces the texture sampling coordinates according to its position relative to the icon.

#

Second shader also has such parts, just with different algorithms.

spice drift
#

yea but like

#

how do they make it so near edges it becomes more and more distorted

#

mimicking "refraction" (i think)

#

i would probably get rid of the blur all together

rose tartan
#

They just compute an offset for texture sampling.