Using the fixed function pipeline, I was able to set the clear color as the same color as fog and enable fog perfectly. Now that I am using shaders, I know I will need to use GLSL to apply fog. The problem I am having understanding is that if the pixel shaders only run on every pixel of each rasterized polygon, how do I force it to run on areas where there is no polygons? Do I just set the clear color matching the fog? Do I need a skydome?
Share
It works the same way as it did before. If your background is just the clear color, then your clear color should match the fog color.