Planets, being much closer to the earth are considered as extended source of light. Stars, being distant, are taken as point sized sources of light. The light coming from stars goes on varying due to atmospheric refraction pro-during twinkling effect.