In my game I have a curvy plane that separates the scene in half, like so:
I would like to add some fog to add some athmospere, however a single color wont work, as the top part should fade to black, the bottom part to white.
I tried to achive the desired effect with two cameras, witch kind of worked, but since the ground has that curve in it I cant really tell the rendering order of the objects (somtimes the plane should cover the boxes, sometimes the boxes should cover the curve, etc)…
Any idea what sould be used here? Is there a way for the two cameras to use the same depth-buffer, so objects beeing farther gets covered by closer ones regardless of the camera that rendered them?