DirectionalLight¶
from acron.stock import DirectionalLight
- class DirectionalLight(**props)¶
Bases:
LightA sun. Aim it with
rotation(h, p, r);shadowsenables 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.
typecoerces assigned values (Vec3,float,str,bool, a color, or any callable);defaultmay be a value or a zero-arg factory. Flags:edit(shown in the inspector),save(written to the scene file),replicate(networked;on_repnames the callback),pin(exposed as a blueprint pin).fget/fsetmake the prop a view over engine state (the NodePath transform) instead of stored data.hint/range/docare metadata for tools.