Just a simple project to visualize how Index of refraction (IOR) works! θ (Theta) - changes the angle of the medium v (velocity) - changes the speed of light in a medium Green line - normal of the medium Blue line - direction of the light wave Yellow line - direction of light after entering the medium Credits: TheLogFather - Faster triangle filler - https://scratch.mit.edu/projects/24828481/ Wikipedia - Line-line intersection - https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection#Given_two_points_on_each_line Me - All other code