(2) Twinkling of stars is due to atmospheric refraction of light emitted by the stars. The light from the star is refracted at the different levels of varying refractive index which causes the star's image to change slightly in brightness and position.