#nobot
| just vibing | 420.moe |
This tutorial deals with lighting and fog effects. Lighting adds realistic visual cues to your scene, but it can be costly on the frame rate. Effective use of fog can reduce the polycount by shortening the visible distance of our view without 'pop-up' destroying the realism of the scene. OpenGL supports 'fogging' objects, which means it applies a fog color to stuff that is further away. If your geometry does not fill the whole screen it is advisable to use the same color for fog and for the back