2010 October 12 / j|d|a|v|i|s|@|c|a|r|l|e|t|o|n|.|e|d|u


Inherits from DirectionalLight. A light source positioned somewhere in the scene, that casts a cone of light in a particular direction. The apical angle of the cone can be at most pi / 2.0 = 90.0 degrees.

__init__(self, size=0, world=None, border=(0.0, 0.0, 0.0, 1.0)

Initializes the light. The size parameter must be 0 (indicating no shadow-casting) or a power of 2 (indicating the size of the shadow map). The isOrthogonal argument is passed along to Camera.__init__; it indicates that spot lights are not orthogonal.

setConcentration(self, concentration)

Sets the concentration exponent of the spot light. A concentration of 0.0 produces an even distribution of light throughout the cone; a higher concentration causes the light intensity to drop off toward the boundary of the cone. The default value is 0.0.


Returns the spot light concentration exponent.

setAngle(self, angle)

Overrides so that the angle does not exceed pi / 2.0. This is the apical angle of the spot light's cone of light (not half of the apical angle).