EZ
Up Prev Next Contents


5.9.2 Setting Light Source Properties

A light source has the following properties.

All these properties are set by the function

void EZ_Lightfv(int lightNum, int propName, float *prop)

The default light sources properties are list below.

diffuse color for other lig srcs specular color for other lig srcs
ambient color (0.0, 0.0, 0.0)
diffuse color for LIGHT0 (1.0,1.0,1.0)
(0.0,0.0,0.0)
specular color for LIGHT0 (1.0,1.0,1.0)
(0.0,0.0,0.0)
position (0.0,0.0,1.0,0.0)
spot direction (0.0,0.0,-1.0)
spot exponent 0.0
spot cutoff angle 180.0
constant attenuation factor 1.0
linear attenuation coefficient 0.0
quadratic attenuation coefficient 0.0


HTML Documentation Maintainance:Arturo Espinosa <arturo@nuclecu.unam.mx>