SFML/samples/bin/datas/post-fx/wave.sfx

13 lines
199 B
Plaintext
Raw Normal View History

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