I think it's likely mood states may influence dreams.
I've been experiencing a lot of anxiety and depression.
I'd had a very anxiety-filled nightmare a few nights ago. It was very "real" and traumatizing. I'd still felt very anxious and very traumatized throughout the following day. It felt very strange for a nightmare to have that much of an impact.
In addition to mood changes, I find Latuda causes very vivid dreams for me.

WC