DirectionalLight

from acron.stock import DirectionalLight
class DirectionalLight(**props)

Bases: Light

A sun. Aim it with rotation (h, p, r); shadows enables a shadow map (switches the scene to the auto shader).

Inheritance diagram

digraph inheritance96780ee989 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "Actor" [URL="acron.actor.Actor.html#acron.actor.Actor",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="A thing in the world. See the module docstring."]; "DirectionalLight" [URL="acron.stock.DirectionalLight.html#acron.stock.DirectionalLight",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="A sun. Aim it with ``rotation`` (h, p, r); ``shadows`` enables a shadow"]; "Light" -> "DirectionalLight" [arrowsize=0.75,style=""]; "Light" [URL="acron.stock.Light.html#acron.stock.Light",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="Base of the stock lights: a Panda light node under the actor, switched"]; "Actor" -> "Light" [arrowsize=0.75,style=""]; }
shadows

A declared property.

type coerces assigned values (Vec3, float, str, bool, a color, or any callable); default may be a value or a zero-arg factory. Flags: edit (shown in the inspector), save (written to the scene file), replicate (networked; on_rep names the callback), pin (exposed as a blueprint pin). fget/fset make the prop a view over engine state (the NodePath transform) instead of stored data. hint / range / doc are metadata for tools.