Human eye color is determined by two factors - the pigmentation of the iris and the way the iris scatters the light passing through it. Genes dictate how much melanin will be present in the eye. The more the melanin, the darker the eye. However, it might seem that in some individuals, their eye color tends to change depending on the amount of light present. This is because of the double layer of iris present in the eye.