Light travels in a wave much like water waves seen on the surface of a pond. Water waves undulate in an up – down direction whereas light waves vibrate up – down, left – right, and diagonally. As a matter of fact light waves undulate in all possible planes. This is true for light waves arriving from sun. In other words, light from the sun is not polarized. Light becomes polarized when light traverses certain transparent liquids and when light is reflected from certain reflective surfaces. What happens is: Lightlight normally undulating in all possible plainsplanes, encounters objects that change or limit the direction of the wave vibration.
OK light waves from the sun are not polarized, they pass through the earth’s atmosphere which might be saturated with water valorvapor or supporting haze, smoke, or dust. When the vibration direction of the waves are altered, we call this polarization. The word comes from the fact that early on, scientist believed light rays has a positive and a negative component like the poles of a magnet. Thus when they saw changes in direction of oscillation they called it polarization. This turned out to be a false assumption.
Now the polarizing filter has imbedded in it, transparent mineral crystals that block light that vibrates in all planes but one. As you rotate the filter, the orientation plane of the light waves that can get through the filter change. The rainbow is caused when light traverses water droplets suspended in the air. These droplets change the direction of travel of the light waves (refraction – to bend inward), plus they polarize the light wave.
As you rotate the polarizing filter, at some positions, light from rainbow in blocked and in some positions light traverses the filter. In some positions the sky behind the rainbow is darkened and in some positions the contrast between sky and rainbow are reduced. This all come under the heading of color as seen and photographed. There are lots of books on this subject.