Skip to main content

Class: MaterialExtender

Asset-Management.MaterialExtender

Properties

FragVoidMain

Static FragVoidMain: string = 'void main() {'

Defined in

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


VertVoidMain

Static VertVoidMain: string = 'void main() {'

Defined in

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

Methods

ApplyMaterialExtensions

Static ApplyMaterialExtensions(material, shader, materialExtensions, renderer): void

Parameters

NameType
materialIMaterial<any>
shaderShader
materialExtensionsMaterialExtension[]
rendererWebGLRenderer

Returns

void

Defined in

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


ApplyMaterialExtension

Static ApplyMaterialExtension(material, shader, materialExtension, renderer): void

Parameters

NameType
materialIMaterial<any>
shaderShader
materialExtensionMaterialExtension
rendererWebGLRenderer

Returns

void

Defined in

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


CacheKeyForExtensions

Static CacheKeyForExtensions(material, materialExtensions): string

Parameters

NameType
materialIMaterial<any>
materialExtensionsMaterialExtension[]

Returns

string

Defined in

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


CacheKeyForExtension

Static CacheKeyForExtension(material, materialExtension): string

Parameters

NameType
materialIMaterial<any>
materialExtensionMaterialExtension

Returns

string

Defined in

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


RegisterExtensions

Static RegisterExtensions(material, customMaterialExtensions?): MaterialExtension[]

Parameters

NameType
materialIMaterial<any>
customMaterialExtensions?MaterialExtension[]

Returns

MaterialExtension[]

Defined in

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


MaterialBeforeRender

Static MaterialBeforeRender(material, object, renderer): void

Parameters

NameType
materialIMaterial<any>
objectObject3D<Event>
rendererWebGLRenderer

Returns

void

Defined in

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

Constructors

constructor

new MaterialExtender()