Skip to main content

Class: SpotLight2

Core-API.SpotLight2

Hierarchy

  • SpotLight

    SpotLight2

Implements

Properties

assetType

assetType: "light"

Implementation of

ILight.assetType

Defined in

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


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

Accessors

lightObject

get lightObject(): SpotLight2

Returns

SpotLight2

Implementation of

ILight.lightObject

Defined in

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


modelObject

get modelObject(): SpotLight2

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

Returns

SpotLight2

Implementation of

ILight.modelObject

Defined in

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


uiConfig

get uiConfig(): UiObjectConfig<any, string>

Returns

UiObjectConfig<any, string>

Implementation of

IUiConfigContainer.uiConfig

Defined in

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

Constructors

constructor

new SpotLight2(color?, intensity?, distance?, angle?, penumbra?, decay?)

Parameters

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

Overrides

SpotLight.constructor

Defined in

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

Methods

copy

copy(source, recursive?): SpotLight2

Parameters

NameType
sourceSpotLight2
recursive?boolean

Returns

SpotLight2

Overrides

SpotLight.copy

Defined in

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


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Implementation of

ILight.toJSON

Overrides

SpotLight.toJSON

Defined in

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


fromJSON

fromJSON(data, meta?): null | SpotLight2

Parameters

NameType
dataany
meta?any

Returns

null | SpotLight2

Implementation of

ILight.fromJSON

Defined in

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