So i have been trying to implement fog into my opengl game
My game is a 2D game, so i was wondering if its possible to implement the fog in 2D games or does it have to be in 3D?
I have followed tutorials exactly (and quite a few tutorials which seem identical, but made for 3D objects) but nothing happens or appears, and i have come to the conclusion that i dont glEnable(DEPTH_TEST); even if i do it doesn't make a difference and im pretty sure its because the depth buffer isn't set (if i use the depth buffer i get no screen because its made for 2D view)
so i was just wondering what changes may have to be made to use Fog in a 2D program
IF it can even be used in 2D view?
My game is a 2D game, so i was wondering if its possible to implement the fog in 2D games or does it have to be in 3D?
I have followed tutorials exactly (and quite a few tutorials which seem identical, but made for 3D objects) but nothing happens or appears, and i have come to the conclusion that i dont glEnable(DEPTH_TEST); even if i do it doesn't make a difference and im pretty sure its because the depth buffer isn't set (if i use the depth buffer i get no screen because its made for 2D view)
so i was just wondering what changes may have to be made to use Fog in a 2D program
IF it can even be used in 2D view?