Alpha only shadows

Hi all! I can’t seem to find a solution to my question. Is there a way I can have the shadows only affect what is not masked out? It seems as if the lighting is still affecting the masked parts of the mesh. it would be really daunting task to separate the mesh, for 10 characters.

Any help on this matter would greatly be appreciated. Thank you :slight_smile: