Class DirectionalLight

Directional Light

Inherits from

Constructors

Name Description
this

Fields

Name Type Description
direction gl3n.linalg.Vector!(float,3) The direction the light points in.
castShadows bool If it should cast shadows
color gl3n.linalg.Vector!(float,3) The color the light gives off.
owner GameObject The GameObject that owns this component.
yaml dyaml.node.Node The node that defined the component.

Properties

Name Type Description
projView [get] gl3n.linalg.Matrix!(float,4,4)
shadowMapFrameBuffer [get] uint
shadowMapSize [get] int
shadowMapTexture [get] uint
projView [set] gl3n.linalg.Matrix!(float,4,4)
shadowMapFrameBuffer [set] uint
shadowMapSize [set] int
shadowMapTexture [set] uint

Methods

Name Description
calculateProjView calculates the light's projection and view matrices, and combines them
initialize Initializes the lights.
draw Called on the draw cycle.
refresh Called when refreshing an object.
shutdown Called on shutdown.
update Called on the update cycle.

Authors

Copyright

License