API

Interface NodeMaterial

A compiled Node Material (Babylon NME graph). Exposes an inputs map of named handles for live uniform/texture updates, and dispatches rendering through the inherited _buildGroup hook.

interface NodeMaterial {
    inputs: Record<string, NodeInputHandle>;
    metadata?: LiteMetadata;
    name?: string;
}

Hierarchy (View Summary)

Index
inputs: Record<string, NodeInputHandle>
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.