either what mm201 suggested, or I suppose it would be possible to have the game measure the overlay's brightness and when that drops below a certain number, it uses white/transparent instead of black/transparent.
Dunno if it would work quite as well though~
Dunno if it would work quite as well though~