Lab22 Refraction

After this class you will know how to implement refraction.

TODO:

  • Implement refraction as discussed in class
  • Assume ior= 1.0 outside of objects
  • Test this with the new scene file

If you implement only transparency with ior (index of refraction) = 1.0 for incoming and transmitted material, your image should look like this:

If you implement the full refraction equation, your image should look similar to this:

Now you have learned about almost everything you need to get a good mark on the assignment. Apply you knowledge to triangles, create some cool scene files and produce some good images. I will create a picture gallery of your images, so please send me some :-).