I can sometimes feel like this. You’re not alone.
It can come and go in phases, but when you sit and think about life, there’s always a whole lot more people out there, with less reason than you to be happy, who still somehow see the good in life. It will appear to you, when you least expect it.