Skip to main content

Class: RandomizedDirectionalLight

Extra-Helpers.RandomizedDirectionalLight

Hierarchy

Implements

Properties

assetType

assetType: "light"

Inherited from

DirectionalLight2.assetType

Defined in

webgi/src/core/threejs/Lights.ts:7


setDirty

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

Type declaration

▸ (options?): void

Parameters
NameType
options?AnyOptions
Returns

void

Inherited from

DirectionalLight2.setDirty

Defined in

webgi/src/core/threejs/Lights.ts:8


isDirectionalLight2

isDirectionalLight2: boolean = true

Inherited from

DirectionalLight2.isDirectionalLight2

Defined in

webgi/src/core/threejs/Lights.ts:10


isRandomizedDirectionalLight

isRandomizedDirectionalLight: boolean = true

Defined in

webgi/src/extras/RandomizedDirectionalLight.ts:54


_uiConfig

Protected Optional _uiConfig: UiObjectConfig<any, string>

Inherited from

DirectionalLight2._uiConfig

Defined in

webgi/src/core/threejs/Lights.ts:39

Accessors

lightObject

get lightObject(): DirectionalLight2

Returns

DirectionalLight2

Inherited from

DirectionalLight2.lightObject

Defined in

webgi/src/core/threejs/Lights.ts:12


modelObject

get modelObject(): DirectionalLight2

Returns

DirectionalLight2

Inherited from

DirectionalLight2.modelObject

Defined in

webgi/src/core/threejs/Lights.ts:15


shadowParams

get shadowParams(): Partial<RDShadowParams>

call setter to change. or call updateShadowParams after changing

Returns

Partial<RDShadowParams>

Defined in

webgi/src/extras/RandomizedDirectionalLight.ts:68

set shadowParams(value): void

call setter to change. or call updateShadowParams after changing

Parameters

NameType
valuePartial<RDShadowParams>

Returns

void

Defined in

webgi/src/extras/RandomizedDirectionalLight.ts:72


randomParams

get randomParams(): Partial<RDRandomParams>

Returns

Partial<RDRandomParams>

Defined in

webgi/src/extras/RandomizedDirectionalLight.ts:80

set randomParams(value): void

Parameters

NameType
valuePartial<RDRandomParams>

Returns

void

Defined in

webgi/src/extras/RandomizedDirectionalLight.ts:84


uiConfig

get uiConfig(): UiObjectConfig<any, string>

Returns

UiObjectConfig<any, string>

Overrides

DirectionalLight2.uiConfig

Defined in

webgi/src/extras/RandomizedDirectionalLight.ts:190

Methods

copy

copy(source, recursive?): RandomizedDirectionalLight

Parameters

NameType
sourceRandomizedDirectionalLight
recursive?boolean

Returns

RandomizedDirectionalLight

Inherited from

DirectionalLight2.copy

Defined in

webgi/src/core/threejs/Lights.ts:27


toJSON

toJSON(meta?): any

Parameters

NameType
meta?any

Returns

any

Inherited from

DirectionalLight2.toJSON

Defined in

webgi/src/core/threejs/Lights.ts:138


updateShadowParams

updateShadowParams(): void

Returns

void

Defined in

webgi/src/extras/RandomizedDirectionalLight.ts:90


randomizePosition

randomizePosition(seed, focus?, spread?): void

Parameters

NameTypeDefault value
seednumberundefined
focusnull | numbernull
spreadnull | numbernull

Returns

void

Defined in

webgi/src/extras/RandomizedDirectionalLight.ts:116


refreshShadowCamNearFar

refreshShadowCamNearFar(): void

Returns

void

Defined in

webgi/src/extras/RandomizedDirectionalLight.ts:180


dispose

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Overrides

DirectionalLight2.dispose

Defined in

webgi/src/extras/RandomizedDirectionalLight.ts:186


fromJSON

fromJSON(data, meta?): null | RandomizedDirectionalLight

Parameters

NameType
dataany
meta?any

Returns

null | RandomizedDirectionalLight

Overrides

DirectionalLight2.fromJSON

Defined in

webgi/src/extras/RandomizedDirectionalLight.ts:255

Constructors

constructor

new RandomizedDirectionalLight(color?, intensity?, shadow?, random?)

Parameters

NameType
color?string | number | Color
intensity?number
shadow?Partial<RDShadowParams>
random?Partial<RDRandomParams>

Overrides

DirectionalLight2.constructor

Defined in

webgi/src/extras/RandomizedDirectionalLight.ts:57