#include <weather.h>
Public Member Functions | |
| void | SmartEnableFog () const |
| void | SetFog (float v) |
| Set fog from 0 (clear) to 1 (very foggy). | |
| void | SetRain (float v) |
| Set rain from 0 (clear) to 1 (hard rain). | |
| void lilith3d::Weather::SmartEnableFog | ( | ) | const |
The engine uses GL_FOG for 2 purposes:
All mesh's are effected by fog (water mist). However, only some are affected by light passing through the atmosphere. The effect is built in to the color of water and the skybox, and shouldn't be doubly applied.
SmartEnableFog collects all that logic together, and sets up GL_FOG correctly.
1.5.1-p1