Currently there are two different mountain shadow algorithms.
- S2IdepixMountainShadowOp
- MountainShadowFlagger
The first one is based on https://desktop.arcgis.com/de/arcmap/10.3/tools/spatial-analyst-toolbox/how-hillshade-works.htm
and was initially implemented by Jan.