Skip to main content

Class: MaterialExtender

Core-API.MaterialExtender

Properties

VoidMain

Static VoidMain: string = 'void main()'

Methods

ApplyMaterialExtensions

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

Parameters

NameType
materialIMaterial<any, IMaterialEventMap>
shaderShader
materialExtensionsMaterialExtension[]
rendererWebGLRenderer

Returns

void


ApplyMaterialExtension

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

Parameters

NameType
materialIMaterial<any, IMaterialEventMap>
shaderShader
materialExtensionMaterialExtension
rendererWebGLRenderer

Returns

void


CacheKeyForExtensions

Static CacheKeyForExtensions(material, materialExtensions): string

Parameters

NameType
materialIMaterial<any, IMaterialEventMap>
materialExtensionsMaterialExtension[]

Returns

string


CacheKeyForExtension

Static CacheKeyForExtension(material, materialExtension): string

Parameters

NameType
materialIMaterial<any, IMaterialEventMap>
materialExtensionMaterialExtension

Returns

string


RegisterExtensions

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

Parameters

NameType
materialIMaterial<any, IMaterialEventMap>
customMaterialExtensions?MaterialExtension[]

Returns

MaterialExtension[]

Constructors

constructor

new MaterialExtender()