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

Defined in

webgi/src/extras/asset_manager/importer/threejs/generators/gltf.ts:586


parser

parser: GLTFParser

Constructors

constructor

new GLTFMaterialsAlphaMapExtension(parser)

Parameters

NameType
parserGLTFParser

Defined in

webgi/src/extras/asset_manager/importer/threejs/generators/gltf.ts:587

Methods

extendMaterialParams

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

Parameters

NameType
materialIndexnumber
materialParamsany

Returns

Promise<void | void[]>

Defined in

webgi/src/extras/asset_manager/importer/threejs/generators/gltf.ts:604