Debian Codegraph @

pak6-patch088/glsl/edges_fp.glsl

raw
1 uniform sampler2D u_Texture0;
2 uniform sampler2D u_Texture7;
3 varying vec2 texture_coordinate;
4 varying vec2 texture_coordinate2;
5 varying vec2 texture_coordinate3;
6 varying vec2 texture_coordinate4;
7 varying vec2 texture_coordinate5;
8
9 void main()
10 {
11
12 // Sampling The Texture And Passing It To The Frame Buffer
13 gl_FragColor = texture2D(u_Texture0, texture_coordinate);
14
15 if (abs(texture2D(u_Texture7, texture_coordinate).a-texture2D(u_Texture7, texture_coordinate2).a)>0.0016f) { gl_FragColor.r=0; gl_FragColor.g=0; gl_FragColor.b=0; }
16 if (abs(texture2D(u_Texture7, texture_coordinate).a-texture2D(u_Texture7, texture_coordinate3).a)>0.0016f) { gl_FragColor.r=0; gl_FragColor.g=0; gl_FragColor.b=0; }
17 if (abs(texture2D(u_Texture7, texture_coordinate).a-texture2D(u_Texture7, texture_coordinate4).a)>0.0016f) { gl_FragColor.r=0; gl_FragColor.g=0; gl_FragColor.b=0; }
18 if (abs(texture2D(u_Texture7, texture_coordinate).a-texture2D(u_Texture7, texture_coordinate5).a)>0.0016f) { gl_FragColor.r=0; gl_FragColor.g=0; gl_FragColor.b=0; }
19
20 }