Fog seems to be very easy to implement in openGL but I got some visualization problems when I use it in my program. There isn’t a nice fog everywhere on the screen but only some spots on the ground and I don’t understand why.
I enable the fog in the initGL function, after enabling the lighting, the textures… I put all the fog parameters but it’s not working.
I tried the fog in another program, an easier one, with the same parameters, and I get a great fog.
I don’t know what can come the problem from.
Thanks for your answers,