Three main sources of unwanted heat gain in buildings are direct solar impacts through windows and skylights, heat transfer through exterior surfaces as interior temperatures infiltrate, and heat produced internally. Proper building orientation, daylighting design, shading techniques, and thermal mass can help regulate temperatures and reduce energy use. Key factors in daylighting include building massing, orientation, and use of skylights and clerestories to provide overhead natural light while minimizing glare. Sun path diagrams are useful tools to understand solar angles and aid in shading design.