public void DrawMesh(MeshStylePainterParameters painterParams) { Mesh mesh = painterParams.mesh; Material mat = painterParams.material; int pass = painterParams.pass; mat.SetPass(pass); Graphics.DrawMeshNow(mesh, Matrix4x4.identity); }
public static MeshStylePainterParameters GetDefault(Mesh mesh, Material mat) { var painterParams = new MeshStylePainterParameters() { mesh = mesh, material = mat }; return(painterParams); }