Main Page   Modules   File List   File Members  

LuaFog.cpp File Reference


Detailed Description

Functions to activate and tune the fog in a level.

System: Scar

>


Functions

void fogSetActive (bool active)
 enables fog for the level

void fogSetStart (float start)
 Sets the start plane for fog.

void fogSetEnd (float end)
 Sets the end plane for fog.

void fogSetDensity (float density)
 Sets the fog density.

void fogSetColour (float r, float g, float b, float a)
 set colour for fog, red, green, blue and alpha between 0 and 1

void fogSetType (const char *mode)
 sets the fog mode, linear, exp, or exp2

void fogAddInterpolator (const char *buf, float length, float target)
 add an interpolator for a fog parameter buf: it can be one of these string values fogStart, fogEnd, fogDensity, fogR, fogG, fogB length: duration of the event target: final value of the modified parameter


Generated on Fri Oct 31 04:05:39 2003 for Scar by doxygen1.3-rc3