Panda3DDirectionalLight

class Panda3DDirectionalLight(self, name: str, color: visp._visp.core.RGBf, direction: visp._visp.core.ColVector)

Bases: Panda3DLight

Methods

__init__

addToScene

Inherited Methods

getColor

Get the light's color.

getName

Get the name of the light.

Operators

__doc__

__init__

__module__

Attributes

__annotations__

__init__(self, name: str, color: visp._visp.core.RGBf, direction: visp._visp.core.ColVector)
addToScene(self, scene: NodePath) None
getColor(self) visp._visp.core.RGBf

Get the light’s color.

Returns:

const vpRGBf &

getName(self) str

Get the name of the light.

This name should be unique and will be required when interacting with Panda3D to fetch the node.