RectangleLight

from panda3d.core import 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

Inheritance diagram of RectangleLight

__init__(*args, **kwargs)
getClassType()

C++ Interface: get_class_type()

getMaxDistance()

C++ Interface: get_max_distance(RectangleLight self)

/**
  • Returns the maximum distance at which the light has any effect, as previously

  • specified by set_max_distance.

*/

get_class_type()

C++ Interface: get_class_type()

get_max_distance()

C++ Interface: get_max_distance(RectangleLight self)

/**
  • Returns the maximum distance at which the light has any effect, as previously

  • specified by set_max_distance.

*/

max_distance
setMaxDistance()

C++ Interface: set_max_distance(const RectangleLight self, float 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.

*/

set_max_distance()

C++ Interface: set_max_distance(const RectangleLight self, float 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.

*/