Lighting and Custom Shadows, Vector Dots

Is there a way to have textures like polka dots, only affect shadows, somewhat like in comic books, where there are dots only in shadows and or shading (Also called vector dots).
I’ve been experimenting with light functions, but its only somewhat working, basically the opposite of what i want, it is only working in light, instead of only for shadows.