CMPS 160 -- Lab Assignment 2
Due date:
Thursday, April 11, 2013
Objectives:
Experience with compiling and editing shader programs.
Description
-
The following program is based on the first sample code from chapter two
of our textbook.
First task is to compile and run it to see how it works.
Note: the include files can be found
here,
while the Windows version of the source for example 1 can be found
here.
The shaders are named
vshader21.glsl and
fshader21.glsl.
-
Your second task is to modify this code so that it draws a simple triangle,
just like the 1st lab exercise.
A few things to note:
-
make sure you are drawing a triangle instead of the points or vertices,
-
make sure your triangle has the same color and vertices as in lab1,
-
make sure the viewing angle is the same as in lab1 (check out glOrtho).
Grading:
Note: all lab and programming assignments must include a statically linked executable.
This lab assignment will form part of your CMPS 160L grade.
The other component of CMPS 160L grade is your attendance.
Submission:
Submission must be done using the "submit" command from CATS.
- submit cmps160-ap.s13 lab2 lab2.tar, or
- submit cmps160-ap.s13 lab2 lab2.zip
This command should work from unix.ic.ucsc.edu.
Create and submit a subdirectory called lab2.
It should contain the executable and
all the files you have to make your program compile/run.
Tar or zip up lab2 before submitting.
Last modified
Wednesday, 03-Apr-2013 11:02:32 PDT.