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:7


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:8


isDirectionalLight2

isDirectionalLight2: boolean = true

Defined in

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


_uiConfig

Protected Optional _uiConfig: UiObjectConfig<any, string>

Defined in

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

Accessors

lightObject

get lightObject(): DirectionalLight2

Returns

DirectionalLight2

Implementation of

ILight.lightObject

Defined in

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


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:15


uiConfig

get uiConfig(): UiObjectConfig<any, string>

Returns

UiObjectConfig<any, string>

Implementation of

ILight.uiConfig

Defined in

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

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:19

Methods

copy

copy(source, recursive?): DirectionalLight2

Parameters

NameType
sourceDirectionalLight2
recursive?boolean

Returns

DirectionalLight2

Overrides

DirectionalLight.copy

Defined in

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


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:138


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:151