Class: SpotLight2
Core-API.SpotLight2
Hierarchy
SpotLight
↳
SpotLight2
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
_stablePoses
• Optional
_stablePoses: { distance
: number
; faceNormal
: Vector3
; area
: number
; face
: Face
; maxEdgeLength
: number
; xform
: Matrix4
; edgePoint
: Vector3
}[]
Inherited from
SpotLight._stablePoses
_poseIndex
• Optional
_poseIndex: number
Inherited from
SpotLight._poseIndex
_originalXform
• Optional
_originalXform: Matrix4
Inherited from
SpotLight._originalXform
Accessors
lightObject
• get
lightObject(): SpotLight2
Returns
Implementation of
modelObject
• get
modelObject(): SpotLight2
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 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
Methods
copy
▸ copy(source
, recursive?
): SpotLight2
Parameters
Name | Type |
---|---|
source | SpotLight2 |
recursive? | boolean |
Returns
Overrides
SpotLight.copy
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Overrides
SpotLight.toJSON
fromJSON
▸ fromJSON(data
, meta?
): null
| SpotLight2
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| SpotLight2