Made changes to implement reflection and refraction.