pak6-patch088/glsl/BWfilter_fp.glsl
raw| 1 | uniform sampler2D u_Texture0; |
| 2 | varying vec2 texture_coordinate; |
| 3 | |
| 4 | void main() |
| 5 | { |
| 6 | |
| 7 | // Sampling The Texture And Passing It To The Frame Buffer |
| 8 | gl_FragColor = texture2D(u_Texture0, texture_coordinate); |
| 9 | gl_FragColor.r=(gl_FragColor.r+gl_FragColor.g+gl_FragColor.b)/3; |
| 10 | gl_FragColor.b=gl_FragColor.r; |
| 11 | gl_FragColor.g=gl_FragColor.r; |
| 12 | |
| 13 | } |