view data/shaders/redcircle.fs @ 58:1099b8eb152a

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 06 Aug 2013 23:15:34 +0300
parents 785057719d9b
children
line wrap: on
line source

/* Fragment shader */

uniform float width;
uniform float height;
uniform sampler2D texture0;
void main()
{
	vec4 texcolor = texture2D(texture0, vec2(gl_FragCoord.x/width, gl_FragCoord.y/height));
	gl_FragColor = vec4(0.5+cos(texcolor.g*0.001+gl_FragCoord.x*4.0+sin(gl_FragCoord.y*0.1)*cos(texcolor.b*0.3)*texcolor.r)*texcolor.g,0.0,0.0,0.5+cos(texcolor.r*0.01)*0.5);
}