Spotlights

By default, anything within the cone is illuminated by the full intensity of the light. GL_SPOT_EXPONENT softens this effect, so that the light is brightest at its center and falls off toward the edges of the cone.

glLightf(GL_LIGHT0, GL_SPOT_EXPONENT, exponent)
next