If they do, the mouse will feel terrible. Some sensors have problems with certain surfaces/colors, but this will be very obvious.
But if the sensor works fine on the surface, it doesn't matter if it is hard, soft, metal, cloth, plastic, glass or whatever; the DPI will be the same.
They will feel different because of friction etc, but the distances does not change.