Substances that function in light reception by animals by transforming light energy into electrical (nerve) potentials.