Why does glass cast a shadow, and whay determines the depth of color of the shadow cast?

One day I noticed that a piece of glass in my house did not cast a visible (to me) shadow, but my glasses did. I was wondering why.