Skip to content

readMaterialDef beta ​

Function of @v12-engine/client/looks-file

ts
export declare function readMaterialDef(data: unknown, what: string): MaterialDef;

A material of a model as data (MaterialDef), with nothing in it that is not of one: its colours 0..1, its pictures by their paths, a Node Material by its snippet, its file in materials/, or its JSON. Throws on what is wrong