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¶
Available APIs¶
- material.unlit creates an unlit material.
- material.standard creates a physically based material.
- material.data creates a data-driven material with scale and colormap support.
- material.custom creates a material from caller-authored WGSL and bindings.
- material#destroy documents common material lifetime behavior.