When the helium core of low-mass stars becomes degenerate, or the outer layers of intermediate-mass stars cool sufficiently to become opaque, their hydrogen shells increase in temperature and the stars start to become more luminous. This is known as the red-giant branch ; it is a relatively long-lived stage and it appears prominently in H–R diagrams. These stars will eventually end their lives as white dwarfs.