As Toadvine, Tobin, and the kid discourse with the Judge, he claims the sun is akin to the eye of God through a simile which anthropomorphizes the sun:
Yonder sun is like the eye of God and we will cook impartially upon this great siliceous griddle I do assure you.
In describing the sun as akin to a part of God, that which gives life—the sun—becomes God, he who gives life according to religious faith. Once more some aspect of nature is divine in McCarthy's novel, which consistently intertwines the natural world with religion. At the same time, the natural world is anthropomorphized, with the sun now an all-seeing eye. (It might also be noted here that by attributing to God an "eye," the novel also anthropomorphizes God, who, according to traditional Judeo-Christian belief, does not have a physical body.) The simile then complicates the relationship between people and nature, a relationship which dominates the novel as characters are exposed to a harsh yet beautiful natural world.
The people won't, however, cook "impartially," as the Judge claims, because the Judge has just purchased a hat from Toadvine for $125. Once more the Judge is better off than his compatriots, this time materially. Making the sun "God" further suggests the role of the Judge as that of the Devil: throughout the novel the Judge is always described as wearing a hat, and he needs a hat so badly that he pays an exorbitantly large sum for one. If the sun is akin to the eye of God, the Judge's insistence on always protecting himself from the sun with a hat then becomes the Judge staying outside of God's purview.