Skip to content

WasmGPU.material

Summary

WasmGPU.material is the material factory facade. It creates unlit, physically based standard, data-driven, and caller-WGSL materials for meshes; each returned material owns its managed renderer resources while borrowing explicitly supplied external resources where documented.

Canonical documentation namepaths use material.* for directly traversable material factories and material.*#* for members of a returned material instance.

Syntax

const material = wgpu.material.standard({ color: [0.8, 0.8, 0.8] });

Available APIs

See Also