Infrared landscape material

Im looking for a way to have a check on event tick to see if the sun directional light is directly shining on the landscape and change a texture for the landscape to show the temperature of the land. I would like this to work on the oculus quest 2 if at all possible. If not that is fine. Has anyone done this? Can comeone help?