2013-06-23 09:13:01 +00:00
|
|
|
|
2014-05-12 12:45:41 +00:00
|
|
|
vec4 ProcessTexel()
|
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
|
|
|
|
2016-05-04 11:47:40 +00:00
|
|
|
texCoord += offset * 0.025;
|
2013-06-23 09:13:01 +00:00
|
|
|
|
2014-05-12 12:45:41 +00:00
|
|
|
return getTexel(texCoord);
|
2013-06-23 09:13:01 +00:00
|
|
|
}
|
|
|
|
|