Violencefighting! Also, we can now properly create 2D textures programmatically.
We now have some form of fog.
Our skysphere now also has a kind of fog to make it blend better with the normal terrain fog.
Added a perlin ease curve to the skysphere fog scale to make it look better.
Improved skysphere fog multiplier ease curve.
Trying to make shadows sharper.
Shadows look awesome now. 2048x2048 shadowmap resolution though.
Slightly changed the different materials and changed naming of a variable for further clarity.
I have created a 'save-texture-to-file' function and a 'generate-new-random-texture' function.
Changed localtime function to use localtime_s