Real-time shadow mapping and custom shaders: any way to have both?

Exactly what it says in the title. Can I access real-time shadow maps from a custom glsl shader?

Thanks for your time.

I don’t think it’s possible for now.
I can’t see any way to pass the buffer shadow as a sampler2D in python.

Unfortunately, like Vitorbalbio said, I don’t think there’s a way to get the shadow image. It would be nice to add that feature in, since I could see it being useful, particularly for custom GLSL shaders. If you use Nodes or Ramps, you obviously keep access to the normal material lighting.

Oh, well. Thanks for the replies.