The interaction between a planar shock wave and square and triangular bubbles containing either SF6, He, Ar, or CO2 is studied numerically. It is shown that, due to the existing large differences in the molecular weight, the specific heat ratio, and the acoustic impedance between these gases, different wave patterns and pressure distribution inside the bubbles are developed during the interaction process. In the case of heavy gases, the velocity of the shock wave propagating along the bubble inner surface is always less than that of the incident shock wave and higher than that of the transmitted shock wave. However, in the case of the light gas (He), the fastest one is the transmitted shock wave and the slowest one is the incident shock wave. The largest pressure jump is witnessed in the SF6 case, while the smallest pressure jump is seen in the helium case. There are also pronounced differences in the deformation of the investigated bubbles; while triangular bubbles filled with either Ar, CO2, or SF6 were deformed to a crescent shape, the helium bubble is deformed to a trapezoidal shape with three pairs of vortices emanating from its surface.