Skip to main content

DirectionalLight3D

Description:

  A directional light whose direction follows its world rotation.

color​

Type: Field.

Description:

  The light color in sRGB space.

Signature:

color: Color3

intensity​

Type: Field.

Description:

  The light intensity.

Signature:

intensity: number

castShadow​

Type: Field.

Description:

  Whether this light casts a shadow.

Signature:

castShadow: boolean

shadowBias​

Type: Field.

Description:

  Constant depth bias used by the shadow comparison.

Signature:

shadowBias: number

shadowNormalBias​

Type: Field.

Description:

  Slope-dependent normal bias used by the shadow comparison.

Signature:

shadowNormalBias: number

shadowSoftness​

Type: Field.

Description:

  Shadow filter radius measured in shadow-map texels. Zero disables filtering.

Signature:

shadowSoftness: number