Philip K. Dick
The Three Stigmata of Palmer Eldritch (1965) uses  many concepts from  science fiction. It has several layers of reality and unreality. It is also one of Dick’s first works to explore religious themes.