Example code for the OpenGL Shading Language Cookbook - 2nd Edition (3rd Edition now available)
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
:tada: NEW The 3rd Edition is now available!!! :tada:
The example code from the OpenGL Shading Language Cookbook, 2nd Edition, by David Wolff and published by Packt Publishing, 2013 (ISBN: 9781782167020).
To compile these examples, you'll need the following:
#define GLM_FORCE_RADIANSprior to including the glm header files.
The example code builds with CMake. Note that the examples for Chapter 10 will not function on MacOS due to lack of support for compute shaders on that platform.
make install) or install GLM from your favorite package manager. Otherwise, the CMake config files will not be created/available.
CMAKE_PREFIX_PATHto help cmake find them.
-G "Visual Studio...", open the Visual Studio solution. You should see one project per chapter.
An OpenGL header file and a function loader for a 4.3 core profile are included with this project. They were generated using GLAD. This loader should also work on MacOS under a 4.1 core profile, but of course not all functions will load.
The code has been tested with OpenGL 4.3 on Windows/Linux and OpenGL 4.1 on MacOS.