First light for the refraction code