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
Name | Type |
---|---|
parser | GLTFParser |
Defined in
webgi/src/extras/asset_manager/importer/threejs/generators/gltf.ts:587
Methods
extendMaterialParams
▸ extendMaterialParams(materialIndex
, materialParams
): Promise
<void
| Texture
[]>
Parameters
Name | Type |
---|---|
materialIndex | number |
materialParams | any |
Returns
Promise
<void
| Texture
[]>
Defined in
webgi/src/extras/asset_manager/importer/threejs/generators/gltf.ts:604