Added fog to the Flash backend

The fog effect was already implemented for the WebGL backend. This implementation follows the same idea to make fog available on the Flash backend.