Skip to content

Class: MaterialUtilities

Constructors

Methods

Constructors

constructor

new MaterialUtilities(): MaterialUtilities

Returns

MaterialUtilities

Methods

GetMaterial

GetMaterial(shaderName): Material

Parameters

NameType
shaderNamestring

Returns

Material

Defined in

src/loader/parser/prefab/mats/MaterialUtilities.ts:10


applyMaterialTexture

applyMaterialTexture(mat, textures): void

Parameters

NameType
matMaterial
texturesPrefabTextureData[]

Returns

void

Defined in

src/loader/parser/prefab/mats/MaterialUtilities.ts:29


applyMaterialProperties

applyMaterialProperties(mat, properties): void

Parameters

NameType
matMaterial
propertiesKV[]

Returns

void

Defined in

src/loader/parser/prefab/mats/MaterialUtilities.ts:42

Released under the MIT License