Our first ray tracing assignment is going to be relatively short and simple. We will have a more difficult problem to solve in the second ray tracing assignment.
For this assignment you will do problem 16.3 from the problems at the end of chapter 16 in the textbook.
Start by clicking the appropriate button above to download the project files you will need. Since compute shaders are not supported on Mac I have provided project files for Linux instead.
On Windows you will follow the usual procedure: put these files into the Windows starter project we have been using all term long.
On Linux the archive I have provided has all of the files you will need for the project. One of the files in the archive is named "commandLine.txt". Inside this file you will find the command line you will need to compile the project. To compile your project open a regular terminal window and navigate to the project folder. Then paste in the command line (to paste text in a terminal use the control-shift-v key combination) and run it. Once the program is compiled you can run it by running the command
./ray
in a terminal. (Note that to compile the project you will need to use a terminal window - the compilation command does not work properly in a Visual Studio Code terminal pane.)