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
Name | Type |
---|---|
material | IMaterial <any > |
shader | Shader |
materialExtensions | MaterialExtension [] |
renderer | WebGLRenderer |
Returns
void
Defined in
webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:39
ApplyMaterialExtension
▸ Static
ApplyMaterialExtension(material
, shader
, materialExtension
, renderer
): void
Parameters
Name | Type |
---|---|
material | IMaterial <any > |
shader | Shader |
materialExtension | MaterialExtension |
renderer | WebGLRenderer |
Returns
void
Defined in
webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:45
CacheKeyForExtensions
▸ Static
CacheKeyForExtensions(material
, materialExtensions
): string
Parameters
Name | Type |
---|---|
material | IMaterial <any > |
materialExtensions | MaterialExtension [] |
Returns
string
Defined in
webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:66
CacheKeyForExtension
▸ Static
CacheKeyForExtension(material
, materialExtension
): string
Parameters
Name | Type |
---|---|
material | IMaterial <any > |
materialExtension | MaterialExtension |
Returns
string
Defined in
webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:74
RegisterExtensions
▸ Static
RegisterExtensions(material
, customMaterialExtensions?
): MaterialExtension
[]
Parameters
Name | Type |
---|---|
material | IMaterial <any > |
customMaterialExtensions? | MaterialExtension [] |
Returns
Defined in
webgi/src/extras/asset_manager/threejs/MaterialExtender.ts:88
Constructors
constructor
• new MaterialExtender()