     }else{
         color.xyz=rgbB;
     }
-
-    if (grayscale > 0) {
-        color.xyz = vec3(color.x);
-    }
+//
+//    if (grayscale > 0) {
+//        color.xyz = vec3(color.x);
+//    }
 
 }
#version 330

uniform sampler2D image_texture;
uniform vec2 frameBufSize;
uniform int grayscale;

in vec2 texCoord;


          dir * rcpDirMin)) / frameBufSize;

    vec3 rgbA = (1.0/2.0) * (
        texture2D(TextureMap, texCoord + dir * (1.0/3.0 - 0.5)).xyz +
        texture2D(TextureMap, texCoord + dir * (2.0/3.0 - 0.5)).xyz);
    vec3 rgbB = rgbA * (1.0/2.0) + (1.0/4.0) * (
        texture2D(TextureMap, texCoord + dir * (0.0/3.0 - 0.5)).xyz +
        texture2D(TextureMap, texCoord + dir * (3.0/3.0 - 0.5)).xyz);
    float lumaB = dot(rgbB, luma);

    if((lumaB < lumaMin) || (lumaB > lumaMax)){
