Is there anyway to detect if the sun is shining on the player?

I want to create a HDR System on Roblox, and one of the things that is important is to detect is sunlight is hitting the player, or the camera. I’ve tried making multiple rays on every degree of the sun, put the problem is of inconvenience and the day/night cycle process. If there is a feature on Roblox that can do that, please help me out. Thank you!

I’m pretty sure there isn’t.

But, you could make a custom “sun” that’s just an invisible part that tracks the sun using TimeOfDay. That “sun” would cast rays, which you can use to tell if the sun is shining on a player with FindPartOnRay.