Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > f00c83953c7eb23ee3c18f4f35d8eb6b > files > 40

sfml2-doc-2.0-0.1mdv2010.2.noarch.rpm

uniform sampler2D texture;
uniform sampler2D wave;
uniform vec2 offset;

void main()
{
	vec2 texoffset = vec2(texture2D(wave, (gl_TexCoord[0].xy * offset).xy));
	texoffset -= vec2(0.5, 0.5);
	texoffset *= 0.05;

	gl_FragColor = texture2D(texture, gl_TexCoord[0].xy + texoffset) * gl_Color;
}