Always wanted to figure out shadows.
Simple approach in OpenFrameworks. Cleaned it up and put it in an addon.
ofxShadowSimple

Shadows in OpenFrameworks