A more expensive, permanent option would be a retractable
awning, manual or automatic. Limited protection when the sun is coming in at an angle, but I imagine not much different than a pergola in that regard. Side curtains, drop panels and screens are available options.