Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DirectionalLightDto

Index

Constructors

constructor

  • new DirectionalLightDto(direction?: Vector3, intensity?: number, diffuse?: string, specular?: string, shadowGeneratorMapSize?: number, enableShadows?: boolean, shadowDarkness?: number): DirectionalLightDto
  • Parameters

    • Optional direction: Vector3
    • Optional intensity: number
    • Optional diffuse: string
    • Optional specular: string
    • Optional shadowGeneratorMapSize: number
    • Optional enableShadows: boolean
    • Optional shadowDarkness: number

    Returns DirectionalLightDto

Properties

diffuse

diffuse: string

Diffuse colour of the point light

default

#ffffff

direction

direction: Vector3

Direction of the directional light

default

[-100, -100, -100]

Optional enableShadows

enableShadows: boolean

Enables shadows

default

true

intensity

intensity: number

Intensity of the point light, value between 0 and 1

default

0.5

minimum

0

maximum

Infinity

step

0.1

Optional shadowDarkness

shadowDarkness: number

Shadow darkness

default

0

minimum

0

maximum

1

step

0.1

Optional shadowGeneratorMapSize

shadowGeneratorMapSize: number

The map size for shadow generator texture if shadows are enabled

default

1024

minimum

0

maximum

Infinity

step

1

specular

specular: string

Specular colour of the point light

default

#ffffff

Generated using TypeDoc