PolylightNode¶
from panda3d.core import PolylightNode
-
class
PolylightNode
¶ Bases:
PandaNode
A PolylightNode
Inheritance diagram
-
__eq__
(other: PolylightNode) → bool¶ Comparison methods
-
__init__
(param0: PolylightNode)¶
-
__init__
(name: str) Use
PolylightNode
to construct a newPolylightNode
object.
-
__lt__
(other: PolylightNode) → bool¶
-
__ne__
(other: PolylightNode) → bool¶
-
compareTo
(other: PolylightNode) → int¶ Returns a number less than zero if this
PolylightNode
sorts before the other one, greater than zero if it sorts after, or zero if they are equivalent.Two
PolylightNodes
are considered equivalent if they consist of exactly the same properties Otherwise, they are different; differentPolylightNodes
will be ranked in a consistent but undefined ordering; the ordering is useful only for placing thePolylightNodes
in a sorted container like an STL set.
-
flickerOn
() → None¶ Set flickering to true so at every loop this light’s color is varied based on flicker_type
-
getA0
() → float¶ Get the quadratic attenuation factor a0 fd = 1 / ( a0 + a1*distance + a2*distance*distance)
-
getA1
() → float¶ Get the quadratic attenuation factor a1 fd = 1 / ( a0 + a1*distance + a2*distance*distance)
-
getA2
() → float¶ Get the quadratic attenuation factor a2 fd = 1 / ( a0 + a1*distance + a2*distance*distance)
-
getAttenuation
() → Attenuation_Type¶ Get “linear” or “quadratic” attenuation type
-
static
getClassType
() → TypeHandle¶
-
getColorScenegraph
() → LColor¶ This differs from
getColor()
in that when applying the light color we need to make sure that a color flattening external to thePolylightNode
is not ignored.
-
getFlickerType
() → Flicker_Type¶ Returns FRANDOM or FSIN
-
getStepSize
() → float¶ Get the step size for the sin function in flicker This is the increment size for the value supplied to the sin function
-
setA0
(a0: float) → None¶ Set the quadratic attenuation factor a0 fd = 1 / ( a0 + a1*distance + a2*distance*distance)
-
setA1
(a1: float) → None¶ Set the quadratic attenuation factor a1 fd = 1 / ( a0 + a1*distance + a2*distance*distance)
-
setA2
(a2: float) → None¶ Set the quadratic attenuation factor a2 fd = 1 / ( a0 + a1*distance + a2*distance*distance)
-
setFlickerType
(type: Flicker_Type) → bool¶ Flicker type can be FRANDOM or FSIN At a later point there might be a FCUSTOM Custom flicker will be a set of fix points recorded by animating the light’s intensity
-
setOffset
(offset: float) → None¶ Set the offset value for the random and sin flicker variations… used to tweak the flicker This value is added to the variation
-