How is the path of light affected by the density of the medium it travels through?

manipulated variable
responding variable
controlled variable