Wrote seperate methods for refraction air->glass and glass->air
Commit before replacing float with typedef real