The light shielding portion 40 and the electrode pad 41 are formed by depositing a metal such as Au, Ag, Al or the like on the n-type semiconductor layer 12a by a sputtering method or the like, and then, patterning the metal by a photolithography technique or the like.