Builtin Library
README.md
material (procRecord)
The material record kind: a surface shader, its property values by name, its texture slots by name and, optionally,
render state (blend, cull, depthWrite) and a buffer property filled from elements. material.pbrMat and
material.shader answer one, held on one element as Material = { material = <record> }.
Live, a record becomes the runtime material the Material component's material field holds. Saved, it is a
.material asset, and a Texture record in one of its slots is written as a texture beside it. io.import of a
.material asset answers the same element, its record read from the asset.