GltfMaterial

glTF material — PBR base color factor + optional base color texture. Phase 2 ignores metallic/roughness/normal/emissive — they're recorded by the reader as defaults for future expansion without consumer churn.

Properties

Link copied to clipboard

True when the material uses alpha blending (alphaMode = "BLEND").

Link copied to clipboard

Alpha cutoff used when alphaMask is true. Default 0.5 per spec.

Link copied to clipboard

True when the material uses alpha masking (alphaMode = "MASK").

Link copied to clipboard

PBR base color (linear sRGB premultiplied with factor; values are in 0, 1).

Link copied to clipboard

Index into GltfModel.images for the base color texture, or -1 when none.

Link copied to clipboard

Texcoord set used by the base color texture. Almost always 0; tracked for completeness.

Link copied to clipboard

True when the material disables back-face culling (doubleSided in glTF).