Skip to main content

Class: PMREMGeneratorPlugin

Plugins.PMREMGeneratorPlugin

deprecated threejs does this internally

Hierarchy

Implements

Properties

PluginType

Static Readonly PluginType: "PMREMGenerator"

Defined in

webgi/src/plugins/threejs/PMREMGeneratorPlugin.ts:11


processor

processor: IObjectProcessor<ITexture<any>>

Defined in

webgi/src/plugins/threejs/PMREMGeneratorPlugin.ts:14

Constructors

constructor

new PMREMGeneratorPlugin()

Inherited from

SimpleEventDispatcher.constructor

Defined in

webgi/src/helpers/EventDispatcher.ts:39

Methods

addEventListener

addEventListener(type, listener): void

Adds a listener to an event type.

Parameters

NameType
type""
listener(event: IEvent<"">) => void

Returns

void

Implementation of

IViewerPlugin.addEventListener

Inherited from

SimpleEventDispatcher.addEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:48


hasEventListener

hasEventListener(type, listener): boolean

Checks if listener is added to an event type.

Parameters

NameType
type""
listener(event: IEvent<"">) => void

Returns

boolean

Implementation of

IViewerPlugin.hasEventListener

Inherited from

SimpleEventDispatcher.hasEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:56


removeEventListener

removeEventListener(type, listener): void

Removes a listener from an event type.

Parameters

NameType
type""
listener(event: IEvent<"">) => void

Returns

void

Implementation of

IViewerPlugin.removeEventListener

Inherited from

SimpleEventDispatcher.removeEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:63


dispatchEvent

dispatchEvent(event): void

Fire an event type.

Parameters

NameType
eventIEvent<"">

Returns

void

Implementation of

IViewerPlugin.dispatchEvent

Inherited from

SimpleEventDispatcher.dispatchEvent

Defined in

webgi/src/helpers/EventDispatcher.ts:74


onAdded

onAdded(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPlugin.onAdded

Defined in

webgi/src/plugins/threejs/PMREMGeneratorPlugin.ts:31


onDispose

onDispose(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPlugin.onDispose

Defined in

webgi/src/plugins/threejs/PMREMGeneratorPlugin.ts:37


onRemove

onRemove(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Implementation of

IViewerPlugin.onRemove

Defined in

webgi/src/plugins/threejs/PMREMGeneratorPlugin.ts:40