panda3d._rplight.RPSpotLight

class RPSpotLight

Bases: RPLight

This represents a spot light, a light which has a position, radius, direction and FoV. Checkout the RenderPipeline documentation for more information about this type of light.

Inheritance diagram

Inheritance diagram of RPSpotLight

__init__() → None

This creates a new spot light with default properties set. You should set at least a direction, fov, radius and position to make the light useful.

property direction
Return type

LVecBase3

property fov
Return type

float

getDirection() → LVecBase3
Return type

LVecBase3

getFov() → float
getRadius() → float
lookAt(point: LVecBase3) → None
lookAt(x: float, y: float, z: float) → None
property radius
Return type

float

setDirection(direction: LVecBase3) → None
setDirection(dx: float, dy: float, dz: float) → None
setFov(fov: float) → None
setRadius(radius: float) → None