lilith3d::Weather Class Reference

#include <weather.h>

List of all members.


Detailed Description

Describes weather in Lilith, and provides utility functions for the renderer.


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).


Member Function Documentation

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.


The documentation for this class was generated from the following file:
Generated on Fri Mar 23 19:36:29 2007 for Lilith3D by  doxygen 1.5.1-p1