Twinkling of stars is due to:
(4)
Twinkling of stars is due to atmospheric refraction of starlight. The refraction of light occurs in a medium of various layers of gradually changing refractive indices. A star always emits light but the different layers of refractive indices in our atmosphere allow it to seem like a twinkle. When light enters the earth and hits the atmosphere from a distance, it begins to refract the light into any layer it reaches. Thus, the star appears to twinkle.