Skip to main content

Class: PointLight2

Core-API.PointLight2

Hierarchy

  • PointLight

    PointLight2

Implements

Properties

assetType

assetType: "light"

Implementation of

ILight.assetType

Defined in

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


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

Accessors

lightObject

get lightObject(): PointLight2

Returns

PointLight2

Implementation of

ILight.lightObject

Defined in

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


modelObject

get modelObject(): PointLight2

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

Returns

PointLight2

Implementation of

ILight.modelObject

Defined in

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


uiConfig

get uiConfig(): UiObjectConfig<any, string>

Returns

UiObjectConfig<any, string>

Implementation of

IUiConfigContainer.uiConfig

Defined in

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

Constructors

constructor

new PointLight2(color?, intensity?, distance?, decay?)

Parameters

NameType
color?string | number | Color
intensity?number
distance?number
decay?number

Overrides

PointLight.constructor

Defined in

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

Methods

copy

copy(source, recursive?): PointLight2

Parameters

NameType
sourcePointLight2
recursive?boolean

Returns

PointLight2

Overrides

PointLight.copy

Defined in

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


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Implementation of

ILight.toJSON

Overrides

PointLight.toJSON

Defined in

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


fromJSON

fromJSON(data, meta?): null | PointLight2

Parameters

NameType
dataany
meta?any

Returns

null | PointLight2

Implementation of

ILight.fromJSON

Defined in

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