Skip to main content

Interface: MaterialExtension

Asset-Management.MaterialExtension

Properties

parsFragmentSnippet

Optional parsFragmentSnippet: string | (renderer?: WebGLRenderer, material?: IMaterial<any>) => string

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:8


parsVertexSnippet

Optional parsVertexSnippet: string | (renderer?: WebGLRenderer, material?: IMaterial<any>) => string

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:9


extraUniforms

Optional extraUniforms: Object

Index signature

[uniform: string]: IUniform

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:10


customCacheKey

Optional customCacheKey: string

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:14


updaters

Optional updaters: IShaderPropertiesUpdater[] | () => IShaderPropertiesUpdater[]

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:22


updateVersion

Optional updateVersion: number

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:26


uuid

Optional uuid: string

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:27

Methods

shaderExtender

Optional shaderExtender(shader, material, renderer): void

Parameters

NameType
shaderShader
materialIMaterial<any>
rendererWebGLRenderer

Returns

void

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:12


computeCacheKey

Optional computeCacheKey(material): string

Parameters

NameType
materialIMaterial<any>

Returns

string

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:15


onObjectRender

Optional onObjectRender(object, material, renderer): void

Parameters

NameType
objectObject3D<Event>
materialIMaterial<any>
rendererWebGLRenderer

Returns

void

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:18


isCompatible

isCompatible(material): boolean

Parameters

NameType
materialIMaterial<any>

Returns

boolean

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:20


getUiConfig

Optional getUiConfig(material): undefined | UiObjectConfig<any>

Parameters

NameType
materialIMaterial<any>

Returns

undefined | UiObjectConfig<any>

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:24


setDirty

Optional setDirty(): void

Returns

void

Defined in

webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:28