Glass Bubble

By Maya Lei

I updated the ray tracer to include refraction calculations, along with the already implemented reflection calculations. This can be seen in the rendered piece as the hollow glass sphere/bubble, which refracts light; that is, objects behind it are visible and slightly deformed as light bends through the sphere.

This involved the following changes to the code:

Acknowledgements

Code references

https://stackoverflow.com/questions/26087106/refraction-in-raytracing

Formulas referenced from:

https://en.wikipedia.org/wiki/Fresnel_equations