Class DirectionalLight
Directional Light
Inherits from
-
(base class)Light
Constructors
Name | Description |
---|---|
this
|
Fields
Name | Type | Description |
---|---|---|
direction
|
gl3n. |
The direction the light points in.
|
castShadows
|
bool |
If it should cast shadows |
color
|
gl3n. |
The color the light gives off.
|
owner
|
GameObject |
The GameObject that owns this component. |
yaml
|
dyaml. |
The node that defined the component. |
Properties
Name | Type | Description |
---|---|---|
projView
[get]
|
gl3n. |
|
shadowMapFrameBuffer
[get]
|
uint |
|
shadowMapSize
[get]
|
int |
|
shadowMapTexture
[get]
|
uint |
|
projView
[set]
|
gl3n. |
|
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.
|