readWornMaterials
readWornMaterials(
material,originals):Material<MaterialEventMap> |Material<MaterialEventMap>[]
A mesh’s material, or each of its materials, as material dresses
it: what ModelView and InstancedModel draw the mesh in. material
is asked once for each original, and every later call returns that
same material, so a game’s own draw of a model, such as an
InstancedMesh of its meshes, wears what the engine’s draws wear.
The original itself with no material.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
material |
ModelMaterial | undefined |
originals |
Material<MaterialEventMap> | Material<MaterialEventMap>[] |
Returns
Section titled “Returns”Material<MaterialEventMap> | Material<MaterialEventMap>[]