The thing about shadows and light reflection really irritated me. Like a splinter in my eye or something repetitive or something repetitive.
Colors do not "generate" light. They reflect it. Since the light source is blocked (by the thing generating the shadow, in this case a person and their hat), the color on the shadowed side of the hat isnt exposed to any light to reflect so the shadow does not become illuminated. Something else, colors do not "absorb" light. They may however reflect light of a different WAVELENGTH. A black hat will still reflect as much light as a white hat, but of a different wavelength. Once again, no affect to the shadow. Light does not bend unless you have mass on the order of a star, so thats a no-go either.
I think Lev has made it abundantly clear that nothing other than the observation of a person and their hat is the ONLY way of identifying their color with certainty. As far as the riddle is concerned, the universe is composed of nothing but this prison, 4 prisoners and their possible hats and a guy with a gun. Hiding a mirror between your buttcheeks during a conjugal visit with your "girlfriend" to get a look at the guys hat behind you isnt going to work. Developing a makeshift mass spectrometer out of pocket lint to identify the hat color isnt in the cards either. The point is for you to figure it out with your mind, not coming up with a way to 'cheat' the riddle. The thing about riddles is that the answer is usually woven into the question.
If person #1 can see the color of the hats on 2 people in front of him, the odds improve. If both of them are black or white, his and person #4 color is the opposite of theirs:
Person 1 - Must be White
Person 2 - Black \
> - Observed by Person 1
Person 3 - Black /
Person 4 - Must be White
If the 2 people in front of Person 1 have hats that are different colors, Person 1 still has the best chance of answering correctly with 50/50 odds.
Person 1 - 50% Chance of being White or Black
Person 2 - White \
> - Observed by Person 1
Person 3 - Black /
Person 4 - 50% Chance of being White or Black
So no matter what happens, Person 1 either has the correct answer or a 50% chance of having the right answer. Person 1 has the best chance of knowing the correct answer no matter what. Hooray Person 1!!!
(My diagrams use multiple spaces so youll have to use your imagination to see what I was trying to do there. Hopefully it makes sense.)