This repository contains a C# class that is capable of taking a 2D image and generating a shadow on the surface behind it, and shadows itself.
Why do you think that https://github.com/lethal-guitar/RigelEngine is a good alternative to 2D-Ambient-Occlusion