Back to grind on the post processing topic: the problem now occurs when i resize the window. For some reason, it doesnt matter what is the initial viewport size, the game world is drawn as a texture just fine, but the moment i resize the window everything gets messed. This is the result before any window resizing (at this moment, the viewport was 960x640):
but when put into fullscreen:
Testing the thing into renderdoc i found that for some reason the camera view area just wasnt being updated. This is the a frame captured whole draw call before and after resizing the window:
but then, after resizing, i got this:
the texture that is generated from the frame buffer (render target)
the final result, that is, the quad and the render target used as a texture in it:
note how in the process of drawing to the frame buffer the objects in view change position, but the camera doesnt change size. And after that, it just slaps that frame buffer into the quad, causing a distortion in the image. I think something is making the camera size not being updated, ima dive deeper into it, but if anyone knows what could be, please let me know.