Energy use in buildings contributes to over 40% of the world’s total energy consumption, of which lighting and space cooling make up a significant proportion. Traditional glass windows have been used for centuries; however, they are not energy-efficient. In the summer, the near-infrared sunlight transmitted through windows produces undesired heating, and the high reflection of mid-infrared limits heat rejection from the building.