Subsequently, a film having light shielding characteristics formed of materials such as Ti, Al, W, Cr, or black-colored resin is formed on the fourth insulating film 112 and then patterned into a desired shape, thereby forming the light shielding film 113.