Directional Light, such as the Sun or the Moon.
    public class DirectionalLight : Light

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.

Inheritance Chain

Constructors

    public DirectionalLight()

Properties

    public float DirectionalShadowBiasSplitScale { get; set; }

    public bool DirectionalShadowBlendSplits { get; set; }

    public ShadowDepthRange DirectionalShadowDepthRange { get; set; }

    public float DirectionalShadowMaxDistance { get; set; }

    public ShadowMode DirectionalShadowMode { get; set; }

    public float DirectionalShadowNormalBias { get; set; }

    public float DirectionalShadowSplit1 { get; set; }

    public float DirectionalShadowSplit2 { get; set; }

    public float DirectionalShadowSplit3 { get; set; }

Methods

    public ShadowDepthRange GetShadowDepthRange()

Getter for DirectionalShadowDepthRange

    public ShadowMode GetShadowMode()

Getter for DirectionalShadowMode

    public bool IsBlendSplitsEnabled()

Getter for DirectionalShadowBlendSplits

    public void SetBlendSplits(bool enabled)

Setter for DirectionalShadowBlendSplits

    public void SetShadowDepthRange(ShadowDepthRange mode)

Setter for DirectionalShadowDepthRange

    public void SetShadowMode(ShadowMode mode)

Setter for DirectionalShadowMode

Inner Types

ShadowDepthRange

Name Value Description
Stable 0  
Optimized 1  

ShadowMode

Name Value Description
Orthogonal 0  
Parallel2Splits 1  
Parallel4Splits 2  
Tags: