Fog generation (tested), + refactor
Merge remote-tracking branch 'origin/master' into develszaki