To set the material properties of a surface, use the Material command.
Material( face, argument, value,...value )
face can be Front, Back, or Front_and_back. (Note that the material properties can be set separately for the front and back faces of a polygon.)
Table 13.5 shows the arguments and default values for Material arguments.
Argument |
Default Value |
Meaning |
---|---|---|
AMBIENT |
(0.2, 0.2, 0.2, 1.0) |
Ambient color of material |
DIFFUSE |
(0.8, 0.8, 0.8, 1.0) |
Diffuse color of material |
AMBIENT_AND_DIFFUSE |
|
Both AMBIENT and DIFFUSE |
SPECULAR |
(0.0, 0.0, 0.0, 1.0) |
Specular color of material |
SHININESS |
0 |
Specular exponent that can range from 0 to 128. |
EMISSION |
(0, 0, 0, 1) |
Emissive color of material |