Optical Refraction/Diffraction Algorithm

