I'd like to create a procedural mesh that makes use of multiple materials. How can this be done? I don't see any way from the mesh API to be able to change the material assigned to triangles? I understand the materials are set in the MeshRender, but how does the material renderer know which material to assign during rendering the different parts of the mesh?
asked Apr 23 '10 at 12:00 PM