Table of Contents Chapter Index Previous Slide Next Slide 410
Syntax: Material

Controlling how shapes are shaded
Syntax: Material
  • A Material node controls shape material attributes
  • diffuse color - main shading color
  • specular color - highlight color
  • shininess - highlight size
  • ambient intensity - ambient lighting effects
  • Material {
        diffuseColor 0.22 0.15 0.00
        specularColor 0.71 0.70 0.56
        shininess 0.16
        ambientIntensity 0.4
    }