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
Name | Type |
---|---|
parser | GLTFParser |
Methods
extendMaterialParams
▸ extendMaterialParams(materialIndex
, materialParams
): Promise
<void
| Texture
<TextureEventMap
>[]>
Parameters
Name | Type |
---|---|
materialIndex | number |
materialParams | any |
Returns
Promise
<void
| Texture
<TextureEventMap
>[]>