Skip to main content

Class: GLTFMaterialsAlphaMapExtension

Asset-Management.GLTFMaterialsAlphaMapExtension

Alpha Map Extension

alphaTexture is added to the material This is separate from the alpha in base color texture. This is used when that is not supported in the viewer

Specification: https://webgi.xyz/docs/gltf-extensions/WEBGI_materials_alphamap.html

Properties

name

name: string


parser

parser: GLTFParser

Constructors

constructor

new GLTFMaterialsAlphaMapExtension(parser)

Parameters

NameType
parserGLTFParser

Methods

extendMaterialParams

extendMaterialParams(materialIndex, materialParams): Promise<void | Texture<TextureEventMap>[]>

Parameters

NameType
materialIndexnumber
materialParamsany

Returns

Promise<void | Texture<TextureEventMap>[]>