VIZA 654 / CSCE 646 : Digital Image
Fall 2020

Project 12: 2D Reflection & Refraction Shader First Review: Nov. 30
Submissions Due: Dec. 07
 

Problem Description:

You will implement a simple global shader.

  1. Reflection Shader: A normal map will reflect a foreground image. You will animate by moving texture.
  2. Refraction Shader: A normal map will refract a background image. You will animate by either moving texture or changing index of refraction.
  3. Fresnel Shader: You will combine reflection and refraction using Fresnel.

For the required parts of the project, implement your operations only using the basic programming operations such as while or for loops and basic mathematical operations such as addition, subtraction, multiplication, division and power. In other words, no high level operation provided by some programming languages is allowed.


Project Submission:

Please write the program in either Processing or Java or C or C++. For C and C++ use OpenGL and GLUTgraphics routines for the display. Upload your program and all essential files to webassign as a "as small as possible" zip directory. In your program, include comments about the program and your name. Also make sure to provide information that and instructions on how to run it.