115

Controlling appearance
Material class methods

  • Methods on Material set shading colors and turn on/off lighting effects
  • Defaults include white diffuse and specular colors, a black emissive color, (0.2,0.2,0.2) ambient color, shininess of 64.0, and lighting enabled
  • Method
    Material( )
    void setAmbientColor( Color3f color )
    void setEmissiveColor( Color3f color )
    void setDiffuseColor( Color3f color )
    void setSpecularColor( Color3f color )
    void setShininess( float shininess )
    void setLightingEnable( boolean state )