# Demystifying the Cosine Weighted Hemisphere Algorithm

Hemisphere Sampling Algorithms and Cosine Weighted Hemisphere Sampling Algorithms are once again in the news because of the buzz around Ray Tracing. This post describes what they are and walks through the algorithms step by step so you understand them rather than just copy and pasting code (which I’m sure none of us ever do!).