Class: SpotLight2
Core-API.SpotLight2
Hierarchy
SpotLight
↳
SpotLight2
Implements
Properties
assetType
• assetType: "light"
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:179
setDirty
• Optional
setDirty: (options?
: AnyOptions
) => void
Type declaration
▸ (options?
): void
Parameters
Name | Type |
---|---|
options? | AnyOptions |
Returns
void
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:180
Accessors
lightObject
• get
lightObject(): SpotLight2
Returns
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:182
modelObject
• get
modelObject(): SpotLight2
Internal three.js Object3D instance (like Mesh, Group, etc)
Returns
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:185
uiConfig
• get
uiConfig(): UiObjectConfig
<any
, string
>
Returns
UiObjectConfig
<any
, string
>
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:211
Constructors
constructor
• new SpotLight2(color?
, intensity?
, distance?
, angle?
, penumbra?
, decay?
)
Parameters
Name | Type |
---|---|
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:191
Methods
copy
▸ copy(source
, recursive?
): SpotLight2
Parameters
Name | Type |
---|---|
source | SpotLight2 |
recursive? | boolean |
Returns
Overrides
SpotLight.copy
Defined in
webgi/src/core/threejs/Lights.ts:199
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Implementation of
ILight.toJSON
Overrides
SpotLight.toJSON
Defined in
webgi/src/core/threejs/Lights.ts:318
fromJSON
▸ fromJSON(data
, meta?
): null
| SpotLight2
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| SpotLight2
Implementation of
ILight.fromJSON