I can see what you mean, a single solution would probably not be good for all purposes, so implementing an easy-to-use function might not be so easy.
I have two games where something like this would be useful. Both are still very early in development, so I asked mostly to be ready.
The first is an FPS. It has lots of uneven terrain, so it would need shadows that could fall from buildings and objects and not "clip" through the ground. It might be possible to do with textures with baked in shadows for still objets, but would be harder for moving ones. Light source doesn't need to move.
The other is a top-down 3D rpg-type of game. Something like this :
http://img.gamefaqs.net/screens/0/7/7/g ... 24_2_7.jpg
It would also need shadows as in above, but here it would be nice to have a moving light source. Ground is for the most part flat, so this would probably be easier to fake in some way.
Again, there's no need to write an example, implement this or so for the moment. Who knows, once I get further into these projects I might have figured something out myself. But the above is what I'm thinking anyway.
