In this project we add reflections and refractions to our ray tracer.
Requirements
XML Scene Format
Our XML scene has some additional descriptions for materials that specify reflection and refraction properties.
<!-- Reflection color --> <reflection r="1" g="1" b="0.8" value="0.7"/> <!-- Refraction color and index of refraction --> <refraction value="0.8" index="1.52"/> <!-- Absorption coefficients --> <absorption r="0.01" g="0.001" b="0.0001"/>
Source Code
The following source code files are provided to help you with this and upcoming projects. You are not required to use them, but it is highly recommened that you use them and refrain from modifying them. Some of these files include additional code as compared to the same files in the previous project, so make sure to download them all again.
Test Scenes
The following scene files are provided to help you test your implementation. You can also prepare other scenes to show your work.
Student Project Pages