What's happening to my skin after going to the beach?

Img: https://imgur.com/a/22NXoeP

Is this some sort of pigmentation due to sun or fungi?

I did sunscreen and was at the beach for about 3 hours. Most of the time I was exposed to the sun, either in the water or on the sand.