Table of contents Chapter index Previous slide Next slide 76
Syntax: Material

Controlling appearance with materials
Syntax: Material
  • A Material node controls shape material attributes
  • diffuseColor - main shading color
  • emissiveColor - glowing color
  • transparency - opaque or not
  • Shape {
    
        appearance Appearance {
    
            material Material {
    
                diffuseColor  0.8 0.8 0.8
    
                emissiveColor 0.0 0.0 0.0
    
                transparency  0.0
    
            }
    
        }
    
        geometry . . .
    
    }