The alteration of a rock's mineralogy and texture by heat, pressure or chemically active fluids, without melting.