forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_directionallight
reduz edited this page May 6, 2014
·
10 revisions
####Inherits: Light ####Category: Core
Directional Light, such as the Sun or the Moon.
- void set_shadow_mode ( int mode )
- int get_shadow_mode ( ) const
- void set_shadow_param ( int param, float value )
- float get_shadow_param ( int param ) const
- SHADOW_ORTHOGONAL = 0
- SHADOW_PERSPECTIVE = 1
- SHADOW_PARALLEL_2_SPLITS = 2
- SHADOW_PARALLEL_4_SPLITS = 3
- SHADOW_PARAM_MAX_DISTANCE = 0
- SHADOW_PARAM_PSSM_SPLIT_WEIGHT = 1
- SHADOW_PARAM_PSSM_ZOFFSET_SCALE = 2
A DirectionalLight is a type of Light node that emits light constantly in one direction (the negative z axis of the node). It is used lights with strong intensity that are located far away from the scene to model sunlight or moonlight. The worldpace location of the DirectionalLight transform (origin) is ignored, only the basis is used do determine light direction.