The material basically specifies how an object will interact with light sources in your world. In the material node, the VRML designer can specifies distinct color, intensity, and transparency values for an object.
The following fields are available for the material node with the following default values:
Material { DiffuseColor 0.8 0.8 0.8 EmissiveColor 0 0 0 Transparency 0 AmbientIntensity 0.2 SpecularColor 0 0 0 Shininess 0.2 }
The values for DiffuseColor, EmissiveColor, and SpecularColor are all triplets representing the percentage of red blue and green. For transparency, AmbientIntensity, and Shininess, the value is between 0 and 1. Unfortunately, good values for transparency, AmbientIntensity, and Shininess are usually achieved by trial and error. Also note that some browsers do note support all off the fields in the material node. If a field is not supported, it will simply be ignored.