# 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

explicit RectangleLight(std::string const &name)

Do not call the copy constructor directly; instead, use make_copy() or copy_subgraph() to make a copy of a node.

static TypeHandle get_class_type(void)
PN_stdfloat get_max_distance(void) const

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

void set_max_distance(PN_stdfloat max_distance)

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.