The speed of light in a medium is inversely proportional to the optical density of the medium.
How does the speed of light determine the optical density of a medium ?
Optical density of a medium is directly proportional to its mass density.