<< appearance ; <<VRML 2.0 - An Introductory view by examples

Material

[example1-html]  [example2-html]          [run-example1] [run-example2]
     (note the difference between the central sphere in both examples)

it specifies surface material properties for associated geometry nodes.

{
exposedField SFFloat ambientIntensity 0.2
exposedField SFColor diffuseColor 0.8 0.8 0.8
exposedField SFColor emissiveColor 0 0 0
exposedField SFFloat shininess 0.2
exposedField SFColor specularColor 0 0 0
exposedField SFFloat transparency 0 # 0 is opaque
}