I modified the wiki terrain shader, I multiply the color result with the alpha map and disable alpha blending.
To create the alpha map I wrote a raytracing function that makes 4 traces per alpha-map pixel to get a rough "darkness factor" for the pixel.
The result looks like this, but is a static shadowmap because it takes ~3 minutes for 500.000 c_trace. O:-)
