For sky map generation, we also include a modified version of the excellent library by Andrew Willmott, hosted at https://github.com/andrewwillmott/sun-sky.

To Build:
-- Open a Visual Studio x64 command line console.
-- Change directory to the same folder as this README file.
-- Dependencies
    * TinyEXR (header only - included)
    * FreeImage (compiled, included for Windows|x64)
-- Dependencies Folder
    * 'include' folder for FreeImage and TinyEXR headers
    * 'lib/x64' for FreeImage.lib and FreeImage.dll
    * The 'FreeImage.dll' needs to be manually copied to the executable folder

-- Run the following command for MSVC
    * cl /O2 /MT /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" SunSky.cpp SunSkyTool.cpp /I "include" /link /LIBPATH:"lib/x64" "FreeImage.lib"
or    
-- Run the following command with Clang
    * clang++.exe -O2 SunSky.cpp SunSkyTool.cpp -Iinclude -L"lib/x64" -o SunSky.exe -lFreeImage

To Run:
This generates the executable 'SunSky.exe'

-- Generate sky data for Hosek
    * SunSky -s Hosek -p

-- Generate sky data for Preetham
    * SunSky -s Preetham -p