Game developers today, especially those working on 3D, are paying a lot of attention even with the slightest details. One of the aspects in 3D-game development I can think of is the proper application of shadows.
Games in 2D before didn’t really care much about putting on shadows as it wasn’t really much important then. The gaming industry nowadays demand their games to look as realistic as possible. Gamers love playing games in full video detail and game devs really look into what the people want.
If you want to see how HTML5 can create the shadow element, try this one here. The code is also there if you want to mess around a bit.