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

RPSpotLight(void)

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.

LVecBase3 const &get_direction(void) const
float get_fov(void) const
float get_radius(void) const
void look_at(LVecBase3 point)
void look_at(float x, float y, float z)
void set_direction(LVecBase3 direction)
void set_direction(float dx, float dy, float dz)
void set_fov(float fov)
void set_radius(float radius)