CMPS 160 -- Lab Assignment 3
Due date:
Thursday, April 18, 2013
Objectives:
More experience with compiling and editing shader programs.
Description
-
Modify the 2nd lab exercise so that the triangles are filled.
The way the triangles are filled is by specifying 2 things:
(i) the material properties of the triangle i.e. what's the
intrinsic color of the triangle, and
(ii) the color of the light source in the scene.
The actual color seen on the triangle is the combination
of how the light source affects the color of the triangle.
For this assignment,
your light source is a simple ambient light.
Assume that the ambient light is (0.5, 0.5, 0.5).
Note that the whole scene may look flat and not 3D-ish.
That's okay. Your next exercise will incorporate other types
of lighting and shading so that your scene will look 3D.
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 lab3 lab3.tar, or
- submit cmps160-ap.s13 lab3 lab3.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
Thursday, 11-Apr-2013 12:07:08 PDT.