This is easy, just sample the texture in your depth shader for each object and do something like this:

clip(tex.a-0.5);