Skip to main content

Class: AmbientLight2

Core-API.AmbientLight2

Hierarchy

  • AmbientLight

    AmbientLight2

Implements

Properties

assetType

assetType: "light"

Implementation of

ILight.assetType

Defined in

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


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

Accessors

lightObject

get lightObject(): AmbientLight2

Returns

AmbientLight2

Implementation of

ILight.lightObject

Defined in

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


modelObject

get modelObject(): AmbientLight2

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

Returns

AmbientLight2

Implementation of

ILight.modelObject

Defined in

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


uiConfig

get uiConfig(): UiObjectConfig<any, string>

Returns

UiObjectConfig<any, string>

Implementation of

ILight.uiConfig

Defined in

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

Constructors

constructor

new AmbientLight2(color?, intensity?)

Parameters

NameType
color?string | number | Color
intensity?number

Overrides

AmbientLight.constructor

Defined in

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

Methods

copy

copy(source, recursive?): AmbientLight2

Parameters

NameType
sourceAmbientLight2
recursive?boolean

Returns

AmbientLight2

Overrides

AmbientLight.copy

Defined in

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


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Implementation of

ILight.toJSON

Overrides

AmbientLight.toJSON

Defined in

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


fromJSON

fromJSON(data, meta?): null | AmbientLight2

Parameters

NameType
dataany
meta?any

Returns

null | AmbientLight2

Implementation of

ILight.fromJSON

Defined in

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