Feldspar forms crystals from magma in both intrusive and extrusive rocks, and they can also happen as compact minerals, as veins, and are also present in many types of metamorphic rock. Rock formed entirely of plagioclase feldspar is known as anorthosite. Feldspar is also found in many types of sedimentary rock.