Skip to main content

Class: MaterialExtender

Core-API.MaterialExtender

Properties

VoidMain

Static VoidMain: string = 'void main()'

Defined in

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

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:39


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:45


CacheKeyForExtensions

Static CacheKeyForExtensions(material, materialExtensions): string

Parameters

NameType
materialIMaterial<any>
materialExtensionsMaterialExtension[]

Returns

string

Defined in

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


CacheKeyForExtension

Static CacheKeyForExtension(material, materialExtension): string

Parameters

NameType
materialIMaterial<any>
materialExtensionMaterialExtension

Returns

string

Defined in

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


RegisterExtensions

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

Parameters

NameType
materialIMaterial<any>
customMaterialExtensions?MaterialExtension[]

Returns

MaterialExtension[]

Defined in

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

Constructors

constructor

new MaterialExtender()