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


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

Accessors

lightObject

get lightObject(): AmbientLight2

Returns

AmbientLight2

Implementation of

ILight.lightObject

Defined in

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


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


uiConfig

get uiConfig(): UiObjectConfig<any, string>

Returns

UiObjectConfig<any, string>

Implementation of

ILight.uiConfig

Defined in

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

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

Methods

copy

copy(source, recursive?): AmbientLight2

Parameters

NameType
sourceAmbientLight2
recursive?boolean

Returns

AmbientLight2

Overrides

AmbientLight.copy

Defined in

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


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


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