Class: MaterialUtilities
Constructors
Methods
Constructors
constructor
• new MaterialUtilities(): MaterialUtilities
Returns
Methods
GetMaterial
▸ GetMaterial(shaderName
): Material
Parameters
Name | Type |
---|---|
shaderName | string |
Returns
Defined in
src/loader/parser/prefab/mats/MaterialUtilities.ts:10
applyMaterialTexture
▸ applyMaterialTexture(mat
, textures
): void
Parameters
Name | Type |
---|---|
mat | Material |
textures | PrefabTextureData [] |
Returns
void
Defined in
src/loader/parser/prefab/mats/MaterialUtilities.ts:29
applyMaterialProperties
▸ applyMaterialProperties(mat
, properties
): void
Parameters
Name | Type |
---|---|
mat | Material |
properties | KV [] |
Returns
void