The prototype of Zen Zoom. Made on ubuntu, I guess.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

16 lines
364 B

uniform sampler2D tex;
void main( void ) {
gl_FragColor = texture2D(tex, gl_TexCoord[0].st);
vec2 offset = vec2(0.01, 0.0);
vec4 a = texture2D(tex, gl_TexCoord[0].st - offset);
vec4 b = texture2D(tex, gl_TexCoord[0].st + offset);
if(length(a-b) < 0.1 && length(gl_FragColor.rgb) > 0.3)
gl_FragColor *= 1.0 + 0.01/length(a-b);
gl_FragColor.a = 1.0;
}