GltfMaterial
Overview
GltfMaterial is a interface in Aspose.3D FOSS for Typescript.
GltfMaterial.name stores the material’s identifier used in the glTF asset.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | : string | Read | Stores the material’s identifier used in the glTF asset |
pbrMetallicRoughness | `: { |
baseColorFactor?: number[];
metallicFactor?: number;
roughnessFactor?: number;
}` | Read | Holds PBR parameters like base color, metallic and roughness |
| baseColorFactor | : number[] | Read | Defines the RGBA multiplier for the material’s base color |
| metallicFactor | : number | Read | Specifies the metallic property value (0‑1) of the material |
| roughnessFactor | : number | Read | Specifies the roughness value (0‑1) of the material |
| emissiveFactor | : number[] | Read | Provides the RGB emissive color multiplier |
| alphaMode | : string | Read | Indicates the alpha rendering mode (e.g., OPAQUE, MASK, BLEND) |
| alphaCutoff | : number | Read | Defines the cutoff threshold for alpha masking |