Shedding light on pilot-wave phenomena