Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 147b1d387d448b6387e6995c25f98124 > files > 161

lib64sfml2-devel-2.1-5.mga4.x86_64.rpm

uniform sampler2D texture;
uniform float pixel_threshold;

void main()
{
    float factor = 1.0 / (pixel_threshold + 0.001);
	vec2 pos = floor(gl_TexCoord[0].xy * factor + 0.5) / factor;
	gl_FragColor = texture2D(texture, pos) * gl_Color;	
}