The correct answer is **a. was shining**.
**Explanation:** The sentence describes a continuous action (the sun shining) that was happening at the moment when another action occurred (I looked out of the window). This is why we use the past continuous tense (was shining).