Material

The MATERIAL definition controls the lighting properties of entities and surfaces, as well as special rendering effects like pixel and vertex shaders. Materials can be assigned to entities or views through the entity.material or view.material parameters; they can also be assigned to surfaces or entities in WED. If no material is assigned, the entity gets a predefinied material according to it's type.

Example:

MATERIAL* mtlSmaragd =
{
ambient_blue = 100;
ambient_green = 255;
ambient_red = 100;
diffuse_blue = 0;
diffuse_green = 100;
diffuse_red = 0;
specular_blue = 255;
specular_green = 255;
specular_red = 255;
power = 10;
}

Remarks:

 

► latest version online