Three-dimensional photolithography using built-in lens mask