Index of refraction depend on:

Distance of object

Distance of image

Speed of light

Focal length