CS 381 HW5--Specular lights and textures

This homework is based on the "glsl_hw5" program. You can download buildable source and a prebuilt binary for Windows and Linux (Zip, Tar-gzip).  You WILL have to recompile this program to finish this homework, so try out your compilers early!

I'd like you to modify my program to do the following things:

  1. Use mipmaps instead of ugly nearest-neighbor texture lookups.
  2. Draw a specular highlight, with phong exponent of 500.0, using the normal already computed in fragment.txt.

Turn in your finished C++ "main.cpp", vertex program "vertex.txt", and fragment program "fragment.txt" files via blackboard. Please do NOT turn in any of the OpenGL libraries or texture images--I've already got 'em, thanks!

Due midnight Friday, October 20th.  Be sure to try them out before submitting them! If Blackboard doesn't work for you, or you don't have an account, you can email this homework to me at ffosl@uaf.edu.

Back to CS 381 Home Back to CS Home Back to UAF Home