What determines whether a metamorphic rock is foliated or non foliated?

- The number of remaining gas molecules

-Temperature, pressure, and the original type of rock

-The water content as a percentage of the rock volume

The presence or absence of mineral crystals