I have a small-format booklet published by Petersen’s Photographic magazine from the 1970s. It shows otherwise identical black-and-white photos with and without a UV filter (no other filter on the lens).
The photos are of scenes that include details from near to far. The closest details look the same in both photos. Those at intermediate distances look more distinct with the filter. Those at the farthest distances are largely obscured by the strong buildup of haze.
Note, that this is not visible haze seen with our eyes, such as from heavy water vapor, smoke, and so forth. Rather, it is the film’s reaction to the light-scattering effect on UV light. The film records it as blue light, creating unwanted density in the developed negative. It has the same effect on color film in which the distant haze might look somewhat blue.
NOTE: Most B&W film shooters use a yellow, orange, or red filter for outdoor photography. These are strong UV absorbers. Since they strongly absorb UV from the incoming light, adding a UV filter over the lens in addition to a yellow, orange or red filter is pointless.
Using a UV filter for color film definitely reduces distance hazing due to scattered UV light. The farther the subject element, the stronger the effect. Whether you’re using color or B&W film, a UV filter will have no effect on hazing caused by heavy water vapor or smoke in the air at distance. These are visible to our eyes.
The buildup of UV scattering haze in the distance is sometimes included intentionally, as a visual clue to great distance. For example, a shot of mountains or large hills receding into haze caused by UV light scattering is a strong indicator of great distance. The same shot without a UV filter wouldn’t convey quite the same feeling of the distance and a heightened sense of 3-dimensionality. A strong buildup of haze with distance is sometimes referred to as aerial perspective in some of my photography books.