Skip to main content

Class: ShadowMapBaker

Extra-Helpers.ShadowMapBaker

Implements

Properties

enabled

enabled: boolean = true

Defined in

webgi/src/extras/ShadowMapBaker.ts:33


maxFrameNumber

maxFrameNumber: number = 400

Defined in

webgi/src/extras/ShadowMapBaker.ts:129


smoothShadow

smoothShadow: boolean = false

Defined in

webgi/src/extras/ShadowMapBaker.ts:132


groundMapMode

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

Defined in

webgi/src/extras/ShadowMapBaker.ts:137


alphaVignette

alphaVignette: boolean = true

Defined in

webgi/src/extras/ShadowMapBaker.ts:141


alphaVignetteAxis

alphaVignetteAxis: string = 'xy'

Defined in

webgi/src/extras/ShadowMapBaker.ts:145


shadowAutoUpdate

shadowAutoUpdate: boolean = true

Defined in

webgi/src/extras/ShadowMapBaker.ts:172


materialExtension

Readonly materialExtension: MaterialExtension

Defined in

webgi/src/extras/ShadowMapBaker.ts:375

Accessors

attachedMesh

get attachedMesh(): undefined | Mesh<BufferGeometry, MeshStandardMaterial>

Returns

undefined | Mesh<BufferGeometry, MeshStandardMaterial>

Defined in

webgi/src/extras/ShadowMapBaker.ts:35

set attachedMesh(value): void

Parameters

NameType
valueundefined | Mesh<BufferGeometry, MeshStandardMaterial>

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

Constructors

constructor

new ShadowMapBaker(viewer)

Parameters

NameType
viewerViewerApp

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:115


cleanupMaterial

cleanupMaterial(): void

Returns

void

Defined in

webgi/src/extras/ShadowMapBaker.ts:122


fromJSON

fromJSON(data, meta?): ShadowMapBaker

Parameters

NameType
dataany
meta?any

Returns

ShadowMapBaker

Defined in

webgi/src/extras/ShadowMapBaker.ts:161


reset

reset(): void

Returns

void

Defined in

webgi/src/extras/ShadowMapBaker.ts:167


autoUpdateShadow

autoUpdateShadow(): void

Returns

void

Defined in

webgi/src/extras/ShadowMapBaker.ts:173


updateShadow

updateShadow(): boolean

Returns

boolean

Defined in

webgi/src/extras/ShadowMapBaker.ts:179