2013-06-23 09:13:01 +00:00
|
|
|
|
2020-04-12 20:10:15 +00:00
|
|
|
|
|
|
|
vec2 GetTexCoord()
|
2013-06-23 09:13:01 +00:00
|
|
|
{
|
2014-07-14 22:19:41 +00:00
|
|
|
vec2 texCoord = vTexCoord.st;
|
2013-06-23 09:13:01 +00:00
|
|
|
|
|
|
|
const float pi = 3.14159265358979323846;
|
|
|
|
vec2 offset = vec2(0.0,0.0);
|
|
|
|
|
2016-05-04 11:47:40 +00:00
|
|
|
offset.y = 0.5 + sin(pi * 2.0 * (texCoord.y + timer * 0.61 + 900.0/8192.0)) + sin(pi * 2.0 * (texCoord.x * 2.0 + timer * 0.36 + 300.0/8192.0));
|
|
|
|
offset.x = 0.5 + sin(pi * 2.0 * (texCoord.y + timer * 0.49 + 700.0/8192.0)) + sin(pi * 2.0 * (texCoord.x * 2.0 + timer * 0.49 + 1200.0/8192.0));
|
2013-06-23 09:13:01 +00:00
|
|
|
|
2020-04-12 20:10:15 +00:00
|
|
|
return texCoord + offset * 0.025;
|
|
|
|
}
|
2013-06-23 09:13:01 +00:00
|
|
|
|
2020-04-12 20:10:15 +00:00
|
|
|
vec4 ProcessTexel()
|
|
|
|
{
|
|
|
|
return getTexel(GetTexCoord());
|
2013-06-23 09:13:01 +00:00
|
|
|
}
|
|
|
|
|