calculate sphere refraction on GPU version