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


Inherits from Light. A light source whose rays arrive on the scene parallel to each other. Useful for describing very distant, very bright lights such as the sun and moon. The orientation of the light in space determines the direction of the light rays; the position of the light in space has no visual effect. Directional light is never attenuated.

__init__(self, size=0, world=None, border=(1.0, 1.0, 1.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 directional lights are orthogonal.


Overrides to return whether or not the light possesses a shadow map.