Filax,
In response to your post on the code archives.....
The basic shadow mapper that I posted only really works with heightmaps. If you need to map objects you're gonna have to go the raytrace method or something similar.
I've a newer version of the code I posted which also lights the terrain according to the terrain normals and their direction with regard to the direction of the sun.
They now look like this :-

This image was rendered in under 500ms
In response to your post on the code archives.....
The basic shadow mapper that I posted only really works with heightmaps. If you need to map objects you're gonna have to go the raytrace method or something similar.
I've a newer version of the code I posted which also lights the terrain according to the terrain normals and their direction with regard to the direction of the sun.
They now look like this :-

This image was rendered in under 500ms