mirror of
https://github.com/SFML/SFML.git
synced 2024-12-05 09:41:05 +08:00
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);
|
||
|
}
|