-
Notifications
You must be signed in to change notification settings - Fork 279
DirectionalLight
Adrien Givry edited this page Feb 7, 2025
·
4 revisions
A simple light that has no attenuation and that has a direction
- C++ related class:
OvCore::ECS::Components::CDirectionalLight - Inherits from lua usertype:
Light
This usertype has no variables
| Name | Input | Output | Description |
|---|---|---|---|
| new | DirectionalLight |
Default constructor |
| Name | Input | Output | Description |
|---|---|---|---|
| GetCastShadow |
DirectionalLight: instance |
boolean |
Returns true if the light should cast shadows |
| SetCastShadow |
DirectionalLight: instanceboolean: enabled |
Defines if the light should cast shadows | |
| GetShadowAreaSize |
DirectionalLight: instance |
number |
Returns the area size of the shadow |
| SetShadowAreaSize |
DirectionalLight: instancenumber: size |
Defines the area size of the shadow | |
| GetShadowFollowCamera |
DirectionalLight: instance |
boolean |
Returns true if the light position should snap to the camera position |
| SetShadowFollowCamera |
DirectionalLight: instanceboolean: enabled |
Defines whether or not the light position should snap to the camera position | |
| GetShadowMapResolution |
DirectionalLight: instance |
number |
Returns the shadow map resolution |
| SetShadowMapResolution |
DirectionalLight: instancenumber: resolution |
Sets the shadow map resolution (The resolution should be a power of 2 for better results) |
This usertype has no operators
