258

Lighting the environment
SpotLight class methods

  • Methods on SpotLight also set the cone spread angle and concentration
  • Method
    void setSpreadAngle( float angle )
    void setConcentration( float concen )
  • Spread angle varies from 0.0 to PI/2.0 radians
  • A value of PI radians makes the light a PointLight
  • The default is PI
  • Concentrations vary from 0.0 (unfocused) to 128.0 (focused)
  • The default is 0.0