Why does a diamond shine more than a glass piece cut to the same shape?

A typical diamond is cut into definite angles, so that the light which comes through one surface goes through multiple TIR (Total Internal Reflections). And after so many TIRs, the light comes out through one surface with a much larger intensity. That is why the shape is important in determining the angle.