RPSpotLight

from acron._rplight import RPSpotLight
class RPSpotLight

Bases:

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

digraph inheritanceb286d71df1 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "RPLight" [URL="acron._rplight.RPLight.html#acron._rplight.RPLight",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "ReferenceCount" -> "RPLight" [arrowsize=0.75,style=""]; "RPSpotLight" [URL="acron._rplight.RPSpotLight.html#acron._rplight.RPSpotLight",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "RPLight" -> "RPSpotLight" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; }
__init__()

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 → LVecBase3
property fov → float
get_direction()
get_fov()
get_radius()
look_at()
property radius → float
set_direction()
set_fov()
set_radius()