CPSC310A
Video Game Development

Activity 5

Shader

Details

  1. Download, compile, and run the appropriate example OpenGL program (shader.cc or Shader.java). You will also need the two shader source files (shader.vert and shader.frag).

  2. Modify the program and shader so that the light has a position.

  3. Modify the program and shader so that the light has a color.

  4. Modify the program and shader so that the light has attenuation.

Submission

Please show your source code and run your program for the instructor.