As depth increases, temperature and pressure increase too. At a certain depth, temperature and pressure are so high that it may affect the mineralogy, texture or chemical composition of rocks. Rocks undergo a process is metamorphism. Temperature is directly proportional to the depth inside Earth. In simple terms, it means the temperature increases as the depth increases inside Earth.