Skip to main content

Class: AmbientLight2

Core-API.AmbientLight2

Hierarchy​

  • AmbientLight

    ↳ AmbientLight2

Implements​

Properties​

assetType​

• assetType: "light"

Implementation of​

ILight.assetType


setDirty​

• Optional setDirty: (options?: AnyOptions) => void

Type declaration​

▸ (options?): void

Parameters​
NameType
options?AnyOptions
Returns​

void

Implementation of​

ILight.setDirty


_stablePoses​

• Optional _stablePoses: { distance: number ; faceNormal: Vector3 ; area: number ; face: Face ; maxEdgeLength: number ; xform: Matrix4 ; edgePoint: Vector3 }[]

Inherited from​

AmbientLight._stablePoses


_poseIndex​

• Optional _poseIndex: number

Inherited from​

AmbientLight._poseIndex


_originalXform​

• Optional _originalXform: Matrix4

Inherited from​

AmbientLight._originalXform

Accessors​

lightObject​

• get lightObject(): AmbientLight2

Returns​

AmbientLight2

Implementation of​

ILight.lightObject


modelObject​

• get modelObject(): AmbientLight2

Internal three.js Object3D instance (like Mesh, Group, etc)

Returns​

AmbientLight2

Implementation of​

ILight.modelObject


uiConfig​

• get uiConfig(): UiObjectConfig<any, string>

Returns​

UiObjectConfig<any, string>

Implementation of​

ILight.uiConfig

Constructors​

constructor​

• new AmbientLight2(color?, intensity?)

Parameters​

NameType
color?string | number | Color
intensity?number

Overrides​

AmbientLight.constructor

Methods​

copy​

▸ copy(source, recursive?): AmbientLight2

Parameters​

NameType
sourceAmbientLight2
recursive?boolean

Returns​

AmbientLight2

Overrides​

AmbientLight.copy


toJSON​

▸ toJSON(meta?): any

Parameters​

NameType
meta?any

Returns​

any

Overrides​

AmbientLight.toJSON


fromJSON​

▸ fromJSON(data, meta?): null | AmbientLight2

Parameters​

NameType
dataany
meta?any

Returns​

null | AmbientLight2