Using external coordinate for fog calculation

Fix fog banding issue on some devices.

TODO: Test if fog density is correct on every devices