Overview
A Physically Based Rendering renderer using Ray Tracing on OpenCL.
Build
Use vcpkg download libraries we need.
> vcpkg install glfw3:x64-windows
> vcpkg install glad:x64-windows
> vcpkg install opencl:x64-windows
> vcpkg install glm:x64-windows
Download GLFW3 x64 binaries for your Visual C++ version and copy all file in ./lib-vcxxxx
to your_vcpkg_path\installed\x64-windows\lib
.
Alter CMAKE_PREFIX_PATH in cmake list to your vcpkg path, default path is C:/source/vcpkg/installed/x64-windows
.\
Note
This project built in AMD OpenCL2.0 environment at first.
Now porting to Nvidia OpenCL1.2, still have some work to do.
Related Efforts
The OpenCL initialize and basic structure functions are based on
OpenCL-path-tracing-tutorial-2-Part-2-Path-tracing-spheres.