mirror of
https://github.com/SFML/SFML.git
synced 2024-12-04 01:01:04 +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);
|
||
|
}
|