Main Page   Modules   File List   File Members  

LuaLight.cpp File Reference


Detailed Description

Functions to create and modify Light parameters.

System: Scar

>


Functions

void createDirLight (const char *name, vector3 pos, vector3 colour)
 Creates a new directional light pos: position of the light Colour values > 1.0 are assumed to be byte [0..255] values and scaled so we get a vector instead.

void createAmbientLight (const char *name, vector3 diffuse)
 Creates a new Ambient Light Colour values > 1.0 are assumed to be byte [0..255] values and scaled so we get a vector instead.

void setLightColour (const char *name, vector3 diffuse)
 Changes the diffuse parameter of the name light Colour values > 1.0 are assumed to be byte [0..255] values and scaled so we get a vector instead.

void setLightSpecular (const char *name, vector3 specular)
 Changes the specular parameter of the name light.

void setGlareIntensity (real32 intensity)
 Changes the global value of the glare, intensity needs to be [0..1].

void setUseLighting (int lighting)
 Obsolete.

void playBgLightAnim (const char *refFxName)
 Plays a background light animation.


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