Class: DirectionalLight2
Core-API.DirectionalLight2
Hierarchy
DirectionalLight
↳
DirectionalLight2
Implements
Properties
assetType
• assetType: "light"
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:8
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:9
isDirectionalLight2
• isDirectionalLight2: boolean
= true
Defined in
webgi/src/core/threejs/Lights.ts:11
_uiConfig
• Protected
Optional
_uiConfig: UiObjectConfig
<any
, string
>
Defined in
webgi/src/core/threejs/Lights.ts:40
Accessors
lightObject
• get
lightObject(): DirectionalLight2
Returns
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:13
modelObject
• get
modelObject(): DirectionalLight2
Internal three.js Object3D instance (like Mesh, Group, etc)
Returns
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:16
uiConfig
• get
uiConfig(): UiObjectConfig
<any
, string
>
Returns
UiObjectConfig
<any
, string
>
Implementation of
Defined in
webgi/src/core/threejs/Lights.ts:42
Constructors
constructor
• new DirectionalLight2(color?
, intensity?
)
Parameters
Name | Type |
---|---|
color? | string | number | Color |
intensity? | number |
Overrides
DirectionalLight.constructor
Defined in
webgi/src/core/threejs/Lights.ts:20
Methods
copy
▸ copy(source
, recursive?
): DirectionalLight2
Parameters
Name | Type |
---|---|
source | DirectionalLight2 |
recursive? | boolean |
Returns
Overrides
DirectionalLight.copy
Defined in
webgi/src/core/threejs/Lights.ts:28
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Implementation of
ILight.toJSON
Overrides
DirectionalLight.toJSON
Defined in
webgi/src/core/threejs/Lights.ts:139
fromJSON
▸ fromJSON(data
, meta?
): null
| DirectionalLight2
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| DirectionalLight2
Implementation of
ILight.fromJSON