Skip to content

DirectionalLight

Adrien Givry edited this page Feb 7, 2025 · 4 revisions

Description

A simple light that has no attenuation and that has a direction

Variables

This usertype has no variables

Constructors

Name Input Output Description
new DirectionalLight Default constructor

Functions

Name Input Output Description
GetCastShadow DirectionalLight: instance
boolean Returns true if the light should cast shadows
SetCastShadow DirectionalLight: instance
boolean: enabled
Defines if the light should cast shadows
GetShadowAreaSize DirectionalLight: instance
number Returns the area size of the shadow
SetShadowAreaSize DirectionalLight: instance
number: 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: instance
boolean: 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: instance
number: resolution
Sets the shadow map resolution (The resolution should be a power of 2 for better results)

Operators

This usertype has no operators

Clone this wiki locally