Skip to main content

Class: MaterialExtender

Core-API.MaterialExtender

Properties

FragVoidMain

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

Defined in

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


VertVoidMain

Static VertVoidMain: 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:63


CacheKeyForExtension

Static CacheKeyForExtension(material, materialExtension): string

Parameters

NameType
materialIMaterial<any>
materialExtensionMaterialExtension

Returns

string

Defined in

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


RegisterExtensions

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

Parameters

NameType
materialIMaterial<any>
customMaterialExtensions?MaterialExtension[]

Returns

MaterialExtension[]

Defined in

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

Constructors

constructor

new MaterialExtender()