'How to combine 2 post effects opengl?

i have noise posteffect

 if(noise){
    float y = rand(TexCoords.xy, time);

      if (y > 0.975)
      {
        float x = rand(TexCoords.xy, time);
        FragColor = vec4(x, x, x, 1.0);

    
      }else
      {
        FragColor = texture(screenTexture,  TexCoords);

      }

float rand(vec2 n, float time){return 0.5 + 0.5* fract(sin(dot(n.xy, vec2(12.9898*time, 78.233*time)))* 43758.5453);}

and i have blue color effect

}else if(mycolor){
     float luminanceThreshold=0.2; // 0.2
     float colorAmplification=4.0; // 4.0
     vec2 uv;           
    uv.x = 0.4*sin(time*50.0);                                 
    uv.y = 0.4*cos(time*50.0);                                 
    //float m = texture(maskTex, VertexUv.st).r;
    vec3 c = texture(screenTexture, TexCoords.st).rgb;

    float lum = dot(vec3(0.30, 0.59, 0.11), c);
    if (lum < luminanceThreshold)
      c *= colorAmplification; 

    vec3 visionColor = vec3(0.375, 0.56, 0.81);
    //FragColor.rgb = (c + (n*0.2)) * visionColor * m;
    FragColor1.rgb = (c) * visionColor;
     FragColor1.a = 1.0;
}

I not understand how to combine in one post effect. They written in one framebuffer.fs



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source