Rock microstructure intrusions are a result of uninterrupted slow cooling. When a rock cools too quickly the liquid freezes into a solid glass, or crystalline groundmass. Often vapor loss from a magma chamber will cause a porphyritic texture. "Embayments" or 'corroded' margins to phenocrysts infer that they were being resorbed by the magma and may imply addition of fresh, hotter magma. Ostwald ripening is also used to explain some porphyritic igneous textures, especially orthoclase megacrystic granites. A crystal growing in a magma adopts a habit (see crystallography) which best reflects its environment and cooling rate. The usual phenocryst habit is the ones
Magma known processes by which magma changes: by crystallization within the crust or mantle to form a pluton, or by volcanic eruption to become lava or tephra. When magma cools it begins to form solid mineral phases. Some of these settle at the bottom of the magma chamber forming cumulates that might form mafic layered intrusions. Magma that cools slowly within a magma chamber usually ends up forming bodies of plutonic rocks such as gabbro, diorite and granite, depending upon the composition of the magma. Alternatively, if the magma is erupted it forms volcanic rocks such as basalt, andesite and rhyolite