Coatings of a metallic or dielectric material on a constituent layer of glass or polymer