The index of refraction depends on:

The image distance

The object distance

The focal length

The speed of light