The Material, MaterialBinding, and Info Nodes

To specify a color in VRML, we use three real numbers each in the range 0-1, in the order Red, Green, Blue.

#VRML V1.0 ascii

Separator {
        
  Info {
                string "This is a cool demo world!"
        } #Info

        Material {
                diffuseColor 0 1 1
                shininess 0.2
                transparency 0
        } #Material

        MaterialBinding {
                value   DEFAULT 
        } #MaterialBinding

} #Separator    

+ Material + Color


Next Table of contents