mirror of
https://github.com/SFML/SFML.git
synced 2024-12-05 09:41:05 +08:00
13 lines
196 B
Plaintext
13 lines
196 B
Plaintext
|
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);
|
||
|
}
|