
FILE FORMAT/DEFAULTS
Material {
ambientColor 0.2 0.2 0.2 # MFColor
diffuseColor 0.8 0.8 0.8 # MFColor
specularColor 0 0 0 # MFColor
emissiveColor 0 0 0 # MFColor
shininess 0.2 # MFFloat
transparency 0 # MFFloat
}
This node declares several of the components of the current material during the traversal stage. Remember that different shapes interpret materials with multiple values differently. In order to bind materials to shapes, you'll need to use a MaterialBinding.
Example Use
The following code fragment is from Calig4.wrl.
Material {
ambientColor [
0.100 0.100 0.100,
0.100 0.100 0.100,
0.100 0.100 0.100,
]
diffuseColor [
0.773 0.529 0.125,
0.149 0.098 0.671,
0.020 0.020 0.027,
]
specularColor [
0.100 0.100 0.100,
0.100 0.100 0.100,
0.100 0.100 0.100,
]
emissiveColor [
0.000 0.000 0.000,
0.000 0.000 0.000,
0.000 0.000 0.000,
]
shininess [
0.000,0.000,0.000,
]
transparency [ 0.000,0.000,0.000,]
}