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.
12 lines
351 B
12 lines
351 B
uniform sampler2D tex;
|
|
|
|
vec2 offset = vec2(0.0, 1.0/600.0);
|
|
|
|
void main( void ) {
|
|
gl_FragColor = texture2D(tex, gl_TexCoord[0].st + offset);
|
|
gl_FragColor += texture2D(tex, gl_TexCoord[0].st - offset);
|
|
gl_FragColor = normalize(gl_FragColor) + 0.5*gl_FragColor;
|
|
gl_FragColor *= 0.56;
|
|
//gl_FragColor = sin(gl_FragColor*3.0);
|
|
gl_FragColor.a = 1.0;
|
|
}
|
|
|