This paper presents methods for calculating the direct light transmittance of a double-grating optical filter. Based on these methods, numerical simulations were carried out, the results of which were confirmed by experiments under direct collimated white light without the influence of diffuse light using two grating smart window models with different sets of strip widths, as well as a model of a conventional window with clean glass. The results showed that by pre-calculating the angle of inclination, the widths of the strips of both gratings and their relative position, taking into account the coordinates of the building and the azimuth of the window, the filter provides angular selectivity of transmission without the use of shading/redirection devices. Window transmission with such a filter is minimized during specified times of the selected day when the need for sun protection is greatest. Due to the angular selective light transmission and the ability to adjust the inclination of the gratings to the trajectory of the Sun, such filters are promising for use in smart windows for optimal filtration of direct solar radiation indoors.