Class: DirectionalLight2
Core-API.DirectionalLight2
Hierarchy
DirectionalLight
↳
DirectionalLight2
Implements
Properties
assetType
• assetType: "light"
Implementation of
setDirty
• Optional
setDirty: (options?
: AnyOptions
) => void
Type declaration
▸ (options?
): void
Parameters
Name | Type |
---|---|
options? | AnyOptions |
Returns
void
Implementation of
isDirectionalLight2
• isDirectionalLight2: boolean
= true
_stablePoses
• Optional
_stablePoses: { distance
: number
; faceNormal
: Vector3
; area
: number
; face
: Face
; maxEdgeLength
: number
; xform
: Matrix4
; edgePoint
: Vector3
}[]
Inherited from
DirectionalLight._stablePoses
_poseIndex
• Optional
_poseIndex: number
Inherited from
DirectionalLight._poseIndex
_originalXform
• Optional
_originalXform: Matrix4
Inherited from
DirectionalLight._originalXform
_uiConfig
• Protected
Optional
_uiConfig: UiObjectConfig
<any
, string
>
Accessors
lightObject
• get
lightObject(): DirectionalLight2
Returns
Implementation of
modelObject
• get
modelObject(): DirectionalLight2
Internal three.js Object3D instance (like Mesh, Group, etc)
Returns
Implementation of
uiConfig
• get
uiConfig(): UiObjectConfig
<any
, string
>
Returns
UiObjectConfig
<any
, string
>
Implementation of
Constructors
constructor
• new DirectionalLight2(color?
, intensity?
)
Parameters
Name | Type |
---|---|
color? | string | number | Color |
intensity? | number |
Overrides
DirectionalLight.constructor
Methods
copy
▸ copy(source
, recursive?
): DirectionalLight2
Parameters
Name | Type |
---|---|
source | DirectionalLight2 |
recursive? | boolean |
Returns
Overrides
DirectionalLight.copy
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Overrides
DirectionalLight.toJSON
fromJSON
▸ fromJSON(data
, meta?
): null
| DirectionalLight2
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| DirectionalLight2