Atheist characters in fiction

Didn't see a post like this offhand in the forums, but I only looked around a little, sorry if this is a repeat.

Anyway, I just came across a very well developed atheist character in Brandon Sanderson's 'Way of Kings' and was really thrown for a loop. Not only is she awesome and smart, she makes great rational arguments in favor of her position. It's interesting to me, because she's in a very religious world and has been branded a heretic, etc. What further interests me is Sanderson is a Mormon. I'm not sure why I'm astonished that a religious person could write a good non-religious person. But I'm very pleased. (I haven't finished the book yet, and its the first in a series, so I have no way telling if she gets eaten by snakes or zapped by lightning or something..).

It's fascinating to me to see an atheist in fantasy, in particular, because fantasy tends to accept that gods are real, along with magic and all that.

I was wondering if any other novels have atheist characters figured in. I mean, as of yet this isn't a major plot point, but its a central part of who this character is. So like that, not just something mentioned as an aside.