Wow! I don't even know what to write for this game. How did you coded the light kills dark?
It's actually really simple! Everything that is out of the line of sight of the white ball (light caster) is in the shadow. So just check if black is in LOS of white 🙏
Hm so if i understand correctly, you are creating single raycast to the dark ball and check if it is visible?