A light source has the following properties.
EZ_AMBIENT Its ambient color.
EZ_DIFFUSE Its diffuse color.
EZ_SPECULAR Its specular color.
EZ_POSITION Its position.
EZ_SPOT_DIRECTION The spot direction for spot
light source.
EZ_SPOT_EXPONENT The spot exponent.
EZ_SPOT_CUTOFF The spot cutoff angle.
EZ_CONSTANT_ATTENUATION The constant
attenuation factor.
EZ_LINEAR_ATTENUATION The linear
attenuation coefficient.
EZ_QUADRATIC_ATTENUATION The quadratic
attenuation coefficient.
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.
| 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 |