Skip to main content

Class: CubeNormalsCaptureHelper

Extra-Helpers.CubeNormalsCaptureHelper

Implements

  • IDisposable

Properties

AutoDisposeTargets

Static AutoDisposeTargets: boolean = true

Automatically dispose targets when all attached geometries are disposed. Set false to keep targets even if no geometry is using it/attached to it.

Defined in

webgi/src/helpers/CubeNormalsCaptureHelper.ts:32

Constructors

constructor

new CubeNormalsCaptureHelper(renderer)

Parameters

NameType
rendererIRenderer

Defined in

webgi/src/helpers/CubeNormalsCaptureHelper.ts:34

Methods

dispose

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

webgi/src/helpers/CubeNormalsCaptureHelper.ts:44


disposeTarget

disposeTarget(cacheKey): void

Parameters

NameType
cacheKeystring

Returns

void

Defined in

webgi/src/helpers/CubeNormalsCaptureHelper.ts:50


disposeAllTargets

disposeAllTargets(): void

Returns

void

Defined in

webgi/src/helpers/CubeNormalsCaptureHelper.ts:54


hasCapturedNormalMap

hasCapturedNormalMap(geometry): boolean

Parameters

NameType
geometryBufferGeometry<NormalBufferAttributes, Event, string>

Returns

boolean

Defined in

webgi/src/helpers/CubeNormalsCaptureHelper.ts:58


captureNormalMap

captureNormalMap(geometry, cacheKey?, size?, normalMapPrecision?): boolean

Parameters

NameTypeDefault value
geometryBufferGeometry<NormalBufferAttributes, Event, string>undefined
cacheKey?stringundefined
sizenumber512
normalMapPrecisionundefined | "low" | "medium" | "high"'medium'

Returns

boolean

Defined in

webgi/src/helpers/CubeNormalsCaptureHelper.ts:73