API

Interface Material

Base material interface — the polymorphic anchor shared by every concrete material kind (Standard, PBR, Shader, Node). Concrete materials add their own user-facing properties while the shared _buildGroup hook lets the renderer dispatch every material through a common path.

interface Material {
    metadata?: LiteMetadata;
    name?: string;
}

Hierarchy (View Summary)

Index
metadata?: LiteMetadata

User metadata. glTF loads populate metadata.gltf.extras when source extras exist.

name?: string

Optional human-readable name. Populated by loaders from the source asset (e.g. the glTF material name) so callers can look a material up by name.