How to check if player is looking at sun

How to check if the player is looking at the sun, I want to check it so i can make a blinding effect, it shouldnt blind the player when they are looking at the sun behind a part / model

This will probably help you:

If you want a blind effect you could use stacked bloom for the effect. Or you can do above.