SFML/DSFML/samples/dsfml/bin/Data/fisheye.sfx

13 lines
196 B
Plaintext
Raw Normal View History

texture framebuffer
vec2 mouse
effect
{
float len = distance(_in, mouse) * 7.0;
if (len < 1.0)
_out = framebuffer(_in + (_in - mouse) * len);
else
_out = framebuffer(_in);
}