Some dogs become fixated on lights, reflections and shadows, especially those with high chase or prey drive.
Light and shadow chasers often begin their obsession with shadows or reflections as a fun game that relieves boredom.
The best way to modify this behavior is to redirect your dog onto more positive pastimes.