# panda3d.core.RectangleLight¶

class RectangleLight

Bases: LightLensNode

This is a type of area light that is an axis aligned rectangle, pointing along the Y axis in the positive direction.

New in version 1.10.0.

Inheritance diagram

__init__(name: str) → None
static getClassType() → TypeHandle
Return type

TypeHandle

getMaxDistance() → float

Returns the maximum distance at which the light has any effect, as previously specified by setMaxDistance().

property max_distance
Getter

Returns the maximum distance at which the light has any effect, as previously specified by setMaxDistance().

Setter

Sets the radius of the light’s sphere of influence. Beyond this distance, the light may be attenuated to zero, if this is supported by the shader.

Return type

float

setMaxDistance(max_distance: float) → None

Sets the radius of the light’s sphere of influence. Beyond this distance, the light may be attenuated to zero, if this is supported by the shader.