Simple implementation of fully-working shadow casting.
Otimizations for the shadow casting drawing.