mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
12 lines
166 B
Plaintext
12 lines
166 B
Plaintext
|
texture framebuffer
|
||
|
vec2 mouse
|
||
|
|
||
|
effect
|
||
|
{
|
||
|
float factor = 5 + 100 * length(mouse);
|
||
|
|
||
|
vec2 pos = floor(_in * factor) / factor;
|
||
|
|
||
|
_out = framebuffer(pos);
|
||
|
}
|