In this shader tutorial, I explain how the sine and cosine functions work and then show 4 shader examples for how to use sine and cosine in Unreal and Unity - including a value that flashes on and off, a bouncing ball, water ripples, and rotating UVs. The amazing animated illustration of sine and cosine was created by Freya Holmér. Check out here YouTube channel here: And a collection of her beautiful math illustrations can be found here: Here's last week's video on the DDX & DDY Derivatives nodes: And here's the playlist for the whole series: Learn more! Resources on the web:
Hide player controls
Hide resume playing