Skip to main content

Class: GammaCorrectionExtension

Plugins.GammaCorrectionExtension

Implements

Constructors

constructor

new GammaCorrectionExtension()

Properties

uiConfig

Optional uiConfig: UiObjectConfig<any, string> = undefined

Implementation of

IUiConfigContainer.uiConfig

Defined in

webgi/src/plugins/threejs/GammaCorrectionPlugin.ts:10


enabled

enabled: boolean = true

Defined in

webgi/src/plugins/threejs/GammaCorrectionPlugin.ts:12

Methods

shaderExtender

shaderExtender(shader, material, renderer): void

Parameters

NameType
shaderShader
materialIMaterial<any>
rendererWebGLRenderer

Returns

void

Implementation of

MaterialExtension.shaderExtender

Defined in

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


computeCacheKey

computeCacheKey(material): string

Parameters

NameType
materialIMaterial<any>

Returns

string

Implementation of

MaterialExtension.computeCacheKey

Defined in

webgi/src/plugins/threejs/GammaCorrectionPlugin.ts:23


isCompatible

isCompatible(material): boolean

Parameters

NameType
materialIMaterial<any>

Returns

boolean

Implementation of

MaterialExtension.isCompatible

Defined in

webgi/src/plugins/threejs/GammaCorrectionPlugin.ts:27