Skip to main content

Class: DirectionalLight2

Core-API.DirectionalLight2

Hierarchy

Implements

Properties

assetType

assetType: "light"

Implementation of

ILight.assetType

Defined in

webgi/src/core/threejs/Lights.ts:8


setDirty

Optional setDirty: (options?: AnyOptions) => void

Type declaration

▸ (options?): void

Parameters
NameType
options?AnyOptions
Returns

void

Implementation of

ILight.setDirty

Defined in

webgi/src/core/threejs/Lights.ts:9


isDirectionalLight2

isDirectionalLight2: boolean = true

Defined in

webgi/src/core/threejs/Lights.ts:11


_uiConfig

Protected Optional _uiConfig: UiObjectConfig<any, string>

Defined in

webgi/src/core/threejs/Lights.ts:40

Accessors

lightObject

get lightObject(): DirectionalLight2

Returns

DirectionalLight2

Implementation of

ILight.lightObject

Defined in

webgi/src/core/threejs/Lights.ts:13


modelObject

get modelObject(): DirectionalLight2

Internal three.js Object3D instance (like Mesh, Group, etc)

Returns

DirectionalLight2

Implementation of

ILight.modelObject

Defined in

webgi/src/core/threejs/Lights.ts:16


uiConfig

get uiConfig(): UiObjectConfig<any, string>

Returns

UiObjectConfig<any, string>

Implementation of

ILight.uiConfig

Defined in

webgi/src/core/threejs/Lights.ts:42

Constructors

constructor

new DirectionalLight2(color?, intensity?)

Parameters

NameType
color?string | number | Color
intensity?number

Overrides

DirectionalLight.constructor

Defined in

webgi/src/core/threejs/Lights.ts:20

Methods

copy

copy(source, recursive?): DirectionalLight2

Parameters

NameType
sourceDirectionalLight2
recursive?boolean

Returns

DirectionalLight2

Overrides

DirectionalLight.copy

Defined in

webgi/src/core/threejs/Lights.ts:28


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Implementation of

ILight.toJSON

Overrides

DirectionalLight.toJSON

Defined in

webgi/src/core/threejs/Lights.ts:139


fromJSON

fromJSON(data, meta?): null | DirectionalLight2

Parameters

NameType
dataany
meta?any

Returns

null | DirectionalLight2

Implementation of

ILight.fromJSON

Defined in

webgi/src/core/threejs/Lights.ts:152