GPU Programming Lab 1
Introduction to Tutorial 1
Grab the tutorials with a command like this:
git clone https://gitlab.com/wikibooks-opengl/modern-tutorials
Inside, you will find the tutorial we have been talking about at modern-tutorials/tut01_intro. Modify it so that:
- Make the triangle yellow instead of blue. You'll have to modify the fragment shader program for this.
- A pentagon is displayed instead of a triangle. One way to do this is to add more triangles. Another is to use a different geometry primitive, such as GL_TRIANGLE_FAN or GL_PATCHES. Either method will work ok, but since class hasn't covered primitives yet, using triangles may be simplest.
Show me your completed lab when you have finished.