Lava cools and solidifies in different ways depending on factors like thickness, rate of cooling, and whether it erupts on land or underwater. This results in a variety of igneous rock textures like pillow lava formed under water, glassy texture from instant cooling, rope-like pahoehoe or jagged aa textures on land, and vesicles or mineral deposits within the rock. Thick lava flows exhibit columnar jointing as they slowly cool from the outside in, forming hexagonal or pentagonal columns.