Without having played Mario Galaxy myself, judging from screenshots it seems the game is using shadow maps[1] or just static geometry for fake shadows[2].
[1] http://screens.latestscreens.com/wii/screenshots/supermariog...
[2] http://images9.gry-online.pl/galeria/galeria_duze3/169624250...