mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
88d48a0f71
Changed samples images Added an effect to the post-fx sample git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1008 4e206d99-4929-0410-ac5d-dfc041789085
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);
|
|
}
|