For Landsat 4-7 and for Landsat 8 there are tools to compute the geometries:
Solar Illumination and Sensor Viewing Angle Coefficient Files (usgs.gov)
The tools are linked on the page.
Maybe @FlorianD can clarify how the Landsat data shall be pre processed to get the required angle bands.
There is also a new ATBD, maybe this helps: