DirectionalLight

Inherits: Light < VisualInstance < Spatial < Node < Object

Category: Core

Brief Description

Directional Light, such as the Sun or the Moon.

Member Functions

int get_shadow_mode ( ) const
bool is_blend_splits_enabled ( ) const
void set_blend_splits ( bool enabled )
void set_shadow_mode ( int mode )

Member Variables

  • float directional_shadow_bias_split_scale
  • bool directional_shadow_blend_splits
  • int directional_shadow_mode
  • float directional_shadow_normal_bias
  • float directional_shadow_split_1
  • float directional_shadow_split_2
  • float directional_shadow_split_3

Numeric Constants

  • SHADOW_ORTHOGONAL = 0
  • SHADOW_PARALLEL_2_SPLITS = 1
  • SHADOW_PARALLEL_4_SPLITS = 2

Description

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 worldspace location of the DirectionalLight transform (origin) is ignored, only the basis is used do determine light direction.

Member Function Description

  • int get_shadow_mode ( ) const
  • bool is_blend_splits_enabled ( ) const
  • void set_blend_splits ( bool enabled )
  • void set_shadow_mode ( int mode )