5899a26aad
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14590 178a84e3-b1eb-0310-8ba1-8eac791a3b58
19 lines
341 B
GLSL
19 lines
341 B
GLSL
uniform sampler2D tex;
|
|
uniform float time;
|
|
|
|
void main()
|
|
{
|
|
vec2 change;
|
|
change.x = abs(sin(time * gl_Color.r));
|
|
change.y = abs(cos(time * gl_Color.g));
|
|
|
|
change = smoothstep(0.0, 1.0, change) * 0.5;
|
|
|
|
vec2 tc = gl_TexCoord[0].xy;
|
|
tc = smoothstep(0.5 - change, 0.5 + change, tc);
|
|
|
|
vec4 tcol = texture2D(tex, tc);
|
|
|
|
gl_FragColor = tcol;
|
|
}
|