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

Controlling appearance with materials
Syntax: Material
  • A Material node also controls shape shininess
  • specularColor - highlight color
  • shininess - highlight size
  • ambientIntensity - ambient lighting effects
  • Shape {
    
        appearance Appearance {
    
            material Material {
    
                specularColor 0.71 0.70 0.56
    
                shininess 0.16
    
                ambientIntensity 0.4
    
            }
    
        }
    
        geometry . . .
    
    }