Class: PointLight2
Core-API.PointLight2
Hierarchy
PointLight
↳
PointLight2
Implements
Properties
assetType
• assetType: "light"
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:358
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:359
Accessors
lightObject
• get
lightObject(): PointLight2
Returns
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:361
modelObject
• get
modelObject(): PointLight2
Internal three.js Object3D instance (like Mesh, Group, etc)
Returns
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:364
uiConfig
• get
uiConfig(): UiObjectConfig
<any
, string
>
Returns
UiObjectConfig
<any
, string
>
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:383
Constructors
constructor
• new PointLight2(color?
, intensity?
, distance?
, decay?
)
Parameters
Name | Type |
---|---|
color? | string | number | Color |
intensity? | number |
distance? | number |
decay? | number |
Overrides
PointLight.constructor
Defined in
webgi/src/core/threejs/Lights.ts:370
Methods
copy
▸ copy(source
, recursive?
): PointLight2
Parameters
Name | Type |
---|---|
source | PointLight2 |
recursive? | boolean |
Returns
Overrides
PointLight.copy
Defined in
webgi/src/core/threejs/Lights.ts:375
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Implementation of
ILight.toJSON
Overrides
PointLight.toJSON
Defined in
webgi/src/core/threejs/Lights.ts:480
fromJSON
▸ fromJSON(data
, meta?
): null
| PointLight2
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| PointLight2
Implementation of
ILight.fromJSON