Skip to main content

Class: ShadowMapBaker

Extra-Helpers.ShadowMapBaker

Hierarchy

  • SimpleEventDispatcher<"shadowBaking" | "shadowBaked">

    ShadowMapBaker

Implements

  • IDisposable

Properties

enabled

enabled: boolean = true

Defined in

webgi/src/extras/ShadowMapBaker.ts:33


maxFrameNumber

maxFrameNumber: number = 400

Defined in

webgi/src/extras/ShadowMapBaker.ts:130


smoothShadow

smoothShadow: boolean = false

Defined in

webgi/src/extras/ShadowMapBaker.ts:133


groundMapMode

groundMapMode: "map" | "aoMap" | "alphaMap" = 'aoMap'

Defined in

webgi/src/extras/ShadowMapBaker.ts:138


alphaVignette

alphaVignette: boolean = true

Defined in

webgi/src/extras/ShadowMapBaker.ts:142


alphaVignetteAxis

alphaVignetteAxis: string = 'xy'

Defined in

webgi/src/extras/ShadowMapBaker.ts:146


shadowAutoUpdate

shadowAutoUpdate: boolean = true

Defined in

webgi/src/extras/ShadowMapBaker.ts:177


maxBakeCount

maxBakeCount: number = Infinity

Defined in

webgi/src/extras/ShadowMapBaker.ts:181


materialExtension

Readonly materialExtension: MaterialExtension

Defined in

webgi/src/extras/ShadowMapBaker.ts:408

Accessors

attachedMesh

get attachedMesh(): undefined | Mesh<BufferGeometry<NormalBufferAttributes, Event, string>, MeshStandardMaterial<Event, "">>

Returns

undefined | Mesh<BufferGeometry<NormalBufferAttributes, Event, string>, MeshStandardMaterial<Event, "">>

Defined in

webgi/src/extras/ShadowMapBaker.ts:35

set attachedMesh(value): void

Parameters

NameType
valueundefined | Mesh<BufferGeometry<NormalBufferAttributes, Event, string>, MeshStandardMaterial<Event, "">>

Returns

void

Defined in

webgi/src/extras/ShadowMapBaker.ts:39


target

get target(): undefined | IRenderTarget & WebGLRenderTarget

Returns

undefined | IRenderTarget & WebGLRenderTarget

Defined in

webgi/src/extras/ShadowMapBaker.ts:49


light

get light(): RandomizedDirectionalLight

Returns

RandomizedDirectionalLight

Defined in

webgi/src/extras/ShadowMapBaker.ts:55


frameNumber

get frameNumber(): number

Returns

number

Defined in

webgi/src/extras/ShadowMapBaker.ts:173

Constructors

constructor

new ShadowMapBaker(viewer)

Parameters

NameType
viewerViewerApp

Overrides

SimpleEventDispatcher<'shadowBaking'|'shadowBaked'\>.constructor

Defined in

webgi/src/extras/ShadowMapBaker.ts:63

Methods

dispose

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

webgi/src/extras/ShadowMapBaker.ts:116


cleanupMaterial

cleanupMaterial(): void

Returns

void

Defined in

webgi/src/extras/ShadowMapBaker.ts:123


fromJSON

fromJSON(data, meta?): ShadowMapBaker

Parameters

NameType
dataany
meta?any

Returns

ShadowMapBaker

Defined in

webgi/src/extras/ShadowMapBaker.ts:162


reset

reset(): void

Returns

void

Defined in

webgi/src/extras/ShadowMapBaker.ts:168


autoUpdateShadow

autoUpdateShadow(): boolean

Returns

boolean

Defined in

webgi/src/extras/ShadowMapBaker.ts:183


updateShadow

updateShadow(): boolean

Returns

boolean

Defined in

webgi/src/extras/ShadowMapBaker.ts:197