Hello everyone. I faced one problem - mixing two colors giving me wrong results. Let me explain:
1) I have Deferred lighting code and it gives good results, I called it "defLight" in GLSL.
2) I have Post-processing things in same code, I got Depth of Field here.
3) When doing the following thing: vec4 finalColor = defLight + postProcess; gives me wrong result, I can't see lighting at all, just diffuse light.
Is there another way to add colors to one variable so they won't mix?
Here are screenshots,
With lighting and no PP
With Post processing and Lighting:
Also, postprocessing after adding looks ugly ( look at blur in second pic ).
Thanks in advance!