Simulating refraction with cube maps