This is not about JOGL per say, but more of just an OpenGL question and I don’t know of any forums that deal primarily with OpenGL, so if someone can answer this anyway…
I am trying to apply fog to a simple 3D object (cube). In all the examples I have come accross, in order for the fog to look right, you have to make the background color the same color as the fog. This seems strange. If I leave the background color black (or whatever color aside from the gray fog color) the object gets “fogged” but the “world” is not.
Am I doing something wrong? Is there something more I need to do? It seems strange to me because you won’t always have a single background color in a scene.
Thanks.