Like last time, 1 point extra credit will be awarded for completed assignment or pull request fixing error before Thurs. 2/9
Extra credit will also be given for opening and especially answering issues on the original repository.
The startup code for this lab follows the learnopengl tutorial and draws a triangle. You will change the code to draw a 2d shape (such as a house) made of at least three triangles.
The steps here will be the same as last time.
-
Clone this repository to make a local copy on your machine.
-
Run cmake from the Build directory to generate a project file for your platform.
-
Compile and run. You should see an orange triangle with a gray background.
Open main.cpp for editing.
-
Instead of a triangle, draw a shape (such as a house) made of at least three triangles.
-
Instead of setting a single uniform color in the fragment shader, specify a color for each vertex and pass it to the fragment shader.
In addition, execute the program, save the image that's created (using a screenshot tool), and move the image into the top level of your repository.
Your add command will be
git add main.cpp img.png
I will look at the code you've changed in main and your generated image.