EZ_DefineLightModel, EZ_BindLightModel - define a lighting model
EZ_LightModel *EZ_DefineLightModel(float *parameters)
void EZ_BindLightModel(EZ_LightModel *lmodel)
Specifies material properties.
Specifies a pre-defined lighting model.
defines a lighting model based on the specified
parameters. The defined lighting model can later be bind the current lighting
specifies an array of floating point symbols and values that
defines the lighting model properties. parameters
must contain a
sequence of lighting symbols, each followed by the appropriate number of
floating point values. The last symbol must be EZ_NULL_F, which is itself not
followed by any values.
The symbols are:
specifies the ambient color of the lighting
model, Must followed by 4 floats in the range [0.0, 1.0] that specify the
intensity of the RGBA components of the ambient color.
specifies whether reflection calculations
are done based on a local or infinitely distant viewpoint. It must be followed
by a single floating point value, which must be either 0.0 or 1.0.
specifies whether lighting calculations are
done assuming that only frontfacing polygons are visible, or are corrected for
each polygon based on whether it is frontfacing or backfacing. It must be
followed by a single floating point value, which must be either 0.0 or 1.0.
The value 1.0 specifies a lighting model that is correct for both frontfacing
and backfacing polygons. In this case, vertex normals are reversed for all
vertices of backfacing polygons and the back-material is used to color
binds the specified pre-defined lighting model to the
current lighting model.
EZ_DefineLightSrc(3), EZ_DefineMaterial(3), EZ_BindLightSrc(3),