I have Shadowmaps working based off of several tutorials around the internet, and have been able to get transparency working by discarding pixels in a texture that have an alpha value. But this only seems to work on only a single texture sampler which I pass to the shadowmap pixel shader.
I'm now trying to work out how I would get my shadows working irrespective of how many textures/models I have in a scene. I can't quite get my head around how I can do this. How have others managed to do this?