SFML/dotnet/samples/bin/datas/post-fx/pixelate.sfx
laurentgom 88d48a0f71 Removed warnings when compiling CSFML in release mode
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
2009-02-06 13:54:39 +00:00

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);
}