Help with ray tracing based on light intensity

+1, I’ve seen solutions to check whether or not a light source is directly shining on the player, but Id like to know more about the specific lighting intesity.