Light, being both a wave and a particle, displays many properties similar to both of them. Light, like waves, travels at different speeds through mediums because they provide any variable amount of resistance. Even air resists light to a degree, and light speed through air is slower than light speed in a vacuum.