Shear layer optical distortions due to compressibility vs. passive scalars