mirror of
https://github.com/SFML/SFML.git
synced 2024-11-26 05:11:04 +08:00
2f524481c1
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1002 4e206d99-4929-0410-ac5d-dfc041789085
13 lines
199 B
Plaintext
13 lines
199 B
Plaintext
texture framebuffer
|
|
texture wave
|
|
vec2 offset
|
|
|
|
effect
|
|
{
|
|
vec2 texoffset = wave(_in * offset).xy;
|
|
texoffset -= vec2(0.5, 0.5);
|
|
texoffset *= 0.05;
|
|
|
|
_out = framebuffer(_in + texoffset);
|
|
}
|