public PbrMaterial GetMaterial(string id, Table.Table table, SurfaceData data)
        {
            switch (id)
            {
            case Top:
                return(new PbrMaterial(table.GetMaterial(data.TopMaterial), table.GetTexture(data.Image)));

            case Side:
                return(new PbrMaterial(table.GetMaterial(data.SideMaterial), table.GetTexture(data.SideImage)));
            }
            throw new ArgumentException($"Unknown mesh ID \"{id}\".");
        }
 public SurfaceMeshGenerator(SurfaceData data)
 {
     _data = data;
 }
 public SurfaceHitGenerator(SurfaceData data)
 {
     _data = data;
 }