PolylightEffect
from panda3d.core import PolylightEffect
- class PolylightEffect
Bases:
RenderEffect
A PolylightEffect can be used on a node to define a LightGroup for that node. A LightGroup contains PolylightNodes which are essentially nodes that add color to the polygons of a model based on distance. PolylightNode is a cheap way to get lighting effects specially for night scenes
Inheritance diagram
- CTAll = 1
- CTProximal = 0
- CT_all = 1
- CT_proximal = 0
- __init__(*args, **kwargs)
- addLight()
C++ Interface: add_light(PolylightEffect self, const NodePath newlight)
- /**
Add a PolylightNode object to this effect and return a new effect
*/
- add_light()
C++ Interface: add_light(PolylightEffect self, const NodePath newlight)
- /**
Add a PolylightNode object to this effect and return a new effect
*/
- getClassType()
C++ Interface: get_class_type()
- getEffectCenter()
C++ Interface: get_effect_center(PolylightEffect self)
- /**
Return the value of the _effect_center
*/
- get_class_type()
C++ Interface: get_class_type()
- get_contrib()
C++ Interface: get_contrib(PolylightEffect self)
- /**
Returns CT_all or CT_proximal
*/
- get_effect_center()
C++ Interface: get_effect_center(PolylightEffect self)
- /**
Return the value of the _effect_center
*/
- hasLight()
C++ Interface: has_light(PolylightEffect self, const NodePath light)
- /**
Returns true if the indicated light is listed in the PolylightEffect, false
otherwise.
*/
- has_light()
C++ Interface: has_light(PolylightEffect self, const NodePath light)
- /**
Returns true if the indicated light is listed in the PolylightEffect, false
otherwise.
*/
- make()
C++ Interface: make() make(float weight, int contrib, const LPoint3f effect_center)
- removeLight()
C++ Interface: remove_light(PolylightEffect self, const NodePath newlight)
- /**
Remove a light from this effect. Return the new updated effect
*/
- remove_light()
C++ Interface: remove_light(PolylightEffect self, const NodePath newlight)
- /**
Remove a light from this effect. Return the new updated effect
*/
- setContrib()
C++ Interface: set_contrib(PolylightEffect self, int c)
- /**
Set Contrib Type and return a new effect… the reason this couldnt be done
through make was because that would return a new effect without the
lightgroup which is static and cant be accessed Here, we just pass that to
the make
*/
- setEffectCenter()
C++ Interface: set_effect_center(PolylightEffect self, const LPoint3f ec)
- /**
Set weight and return a new effect… the reason this couldnt be done
through make was because that would return a new effect without the
lightgroup which is static and cant be accessed Here, we just pass that to
the make
*/
- setWeight()
C++ Interface: set_weight(PolylightEffect self, float w)
- /**
Set weight and return a new effect… the reason this couldnt be done
through make was because that would return a new effect without the
lightgroup which is static and cant be accessed Here, we just pass that to
the make
*/
- set_contrib()
C++ Interface: set_contrib(PolylightEffect self, int c)
- /**
Set Contrib Type and return a new effect… the reason this couldnt be done
through make was because that would return a new effect without the
lightgroup which is static and cant be accessed Here, we just pass that to
the make
*/
- set_effect_center()
C++ Interface: set_effect_center(PolylightEffect self, const LPoint3f ec)
- /**
Set weight and return a new effect… the reason this couldnt be done
through make was because that would return a new effect without the
lightgroup which is static and cant be accessed Here, we just pass that to
the make
*/