"Hanging" here just means the pieces of what was once a shirt are now still on his body. They aren't really a shirt anymore, they are all torn up. "Hanging" is usually not what we say for clothes on bodies, so it implies that it's no longer really "clothes." "Shreds" is just another word for pieces, with the idea that they have been torn by something.