In this work, a novel design of a one dimensional photonic crystal (1D PC) is investigated. The 1DPC structure is composed of alternating layers of tantalum pentoxide (Ta2O5) and silicon dioxide (Sio2).The proposed 1D PC structure is designed to act as short wave pass (SWP) edge filter that selectively passes light of short wavelengths, while the infrared light is blocked. In this study, Essential Macleod software is used to create the optimal design with the computational support of the needle synthesis technique. By varying the incidence angle of the mean polarized light mode, we can determine the features of the optimal SWP edge filter design, which leads to an important application for this filter. It can shed light on the filter's suitability as a smart energy saving window coating for hot climate regions. The study includes different hot regions in Saudi Arabia such as Mecca, Riyadh, Dammam, Arar and Alaqiq. They were used as case studies in this research. According to the study of the optimal design of SWP edge filter applied in Mecca, Riyadh, Dammam, Arar and Alaqiq provinces, the light transmittance in the visible region is more than 99% during the summer solstice and more than 96% during the winter solstice. The photonic band gab (PBG) is almost constant during the summer solstice without shifting or decreasing in size whereas in the winter solstice, the PBG shifts toward the short wavelengths and decreases in size by increasing the angle of incidence. This allows an amount of solar energy to enter in winter. Riyadh, Dammam, and Arar provinces experienced a significant increase in solar energy during the winter solstice, more than Mecca and Alaqiq provinces.