PolylightEffect
from panda3d.core import PolylightEffect
- class PolylightEffect
Bases:
Bases:
RenderEffect
A PolylightEffect can be used on a node to define a
LightGroup
for that node. ALightGroup
containsPolylightNodes
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 scenesInheritance diagram
- class LightGroup
Bases:
alias of
pvector_NodePath
- addLight(newlight: NodePath) RenderEffect
Add a
PolylightNode
object to this effect and return a new effect
- static getClassType() TypeHandle
- getContrib() ContribType
Returns CT_all or CT_proximal
- hasLight(light: NodePath) bool
Returns true if the indicated light is listed in the
PolylightEffect
, false otherwise.
- static make() RenderEffect
Constructs a new
PolylightEffect
object.
- static make(weight: float, contrib: ContribType, effect_center: LPoint3) RenderEffect
Constructs a new
PolylightEffect
object.
- static make(weight: float, contrib: ContribType, effect_center: LPoint3, lights: LightGroup) RenderEffect
Constructs a new
PolylightEffect
object.
- removeLight(newlight: NodePath) RenderEffect
Remove a light from this effect. Return the new updated effect
- setContrib(c: ContribType) RenderEffect
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(ec: LPoint3) RenderEffect
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(w: float) RenderEffect
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