API

Interface MaterialView

A lightweight render view over an editable source material. The view is also a Material: it inherits material state from source through the prototype chain and owns only render-feature bits. Keeping views material-compatible lets ordinary render paths read properties normally, so scenes that never create views do not retain view-specific unwrap branches.

Specialized views (e.g. the Standard geometry MRT view) override _buildGroup with a view-specific builder whose _rebuildSingle builds the right kind of Renderable — no per-family branching is required in the core render-task.

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

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.

source: Material