Class: AmbientLight2
Core-API.AmbientLight2
Hierarchy
AmbientLight
↳
AmbientLight2
Implements
Properties
assetType
• assetType: "light"
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:508
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:509
Accessors
lightObject
• get
lightObject(): AmbientLight2
Returns
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:511
modelObject
• get
modelObject(): AmbientLight2
Internal three.js Object3D instance (like Mesh, Group, etc)
Returns
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:514
uiConfig
• get
uiConfig(): UiObjectConfig
<any
, string
>
Returns
UiObjectConfig
<any
, string
>
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:532
Constructors
constructor
• new AmbientLight2(color?
, intensity?
)
Parameters
Name | Type |
---|---|
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
Name | Type |
---|---|
source | AmbientLight2 |
recursive? | boolean |
Returns
Overrides
AmbientLight.copy
Defined in
webgi/src/core/threejs/Lights.ts:522
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
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
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| AmbientLight2
Implementation of
ILight.fromJSON