DirectionalLight¶
from acron.core import DirectionalLight
- class DirectionalLight¶
Bases:
Bases:
LightLensNodeA light shining from infinitely far away in a particular direction, like sunlight.
Inheritance diagram
digraph inheritance96780ee989 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AcronNode" [URL="acron.core.AcronNode.html#acron.core.AcronNode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "AcronNode" [arrowsize=0.75,style=""]; "Namable" -> "AcronNode" [arrowsize=0.75,style=""]; "Camera" [URL="acron.core.Camera.html#acron.core.Camera",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "LensNode" -> "Camera" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "DirectionalLight" [URL="acron.core.DirectionalLight.html#acron.core.DirectionalLight",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "LightLensNode" -> "DirectionalLight" [arrowsize=0.75,style=""]; "LensNode" [URL="acron.core.LensNode.html#acron.core.LensNode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "AcronNode" -> "LensNode" [arrowsize=0.75,style=""]; "Light" [URL="acron.core.Light.html#acron.core.Light",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" -> "Light" [arrowsize=0.75,style=""]; "LightLensNode" [URL="acron.core.LightLensNode.html#acron.core.LightLensNode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "Light" -> "LightLensNode" [arrowsize=0.75,style=""]; "Camera" -> "LightLensNode" [arrowsize=0.75,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",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" -> "Namable" [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=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",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" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }- __init__()¶
Do not call the copy constructor directly; instead, use
make_copy()orcopy_subgraph()to make a copy of a node.
- clear_specular_color()¶
Clears a custom specular color setting, meaning that the specular color will now come from the color.
- property direction LVector3¶
- Getter
Returns the direction in which the light is aimed. This is local to the coordinate space in which the light is assigned.
- Setter
Sets the direction in which the light is aimed.
- static get_class_type()¶
- get_direction()¶
Returns the direction in which the light is aimed. This is local to the coordinate space in which the light is assigned.
- get_point()¶
Returns the point in space at which the light is located. This is local to the coordinate space in which the light is assigned.
This actually has no bearing on the visual effect of the light, since the light is rendered as if it were infinitely far away. This is only used to create a visible representation of the light.
- property point LPoint3¶
- Getter
Returns the point in space at which the light is located. This is local to the coordinate space in which the light is assigned.
This actually has no bearing on the visual effect of the light, since the light is rendered as if it were infinitely far away. This is only used to create a visible representation of the light.
- Setter
Sets the point in space at which the light is located.
- set_direction()¶
Sets the direction in which the light is aimed.
- set_point()¶
Sets the point in space at which the light is located.
- set_specular_color()¶
Sets the color of specular highlights generated by the light.
- property specular_color LColor¶
- Getter
Returns the color of specular highlights generated by the light. This is usually the same as
get_color().- Setter
Sets the color of specular highlights generated by the light.