Activation of visual pigments by light and heat