Have you ever use a sine or cosine wave in game development? If so what for?
I use them all the time. They can be used all over the place, but one option is for moving platforms back and forth.
1 Like
If I am not mistaken I have used them before in a UE4 shader for a pulsing glow effect. There is a starter material (the Hex tile one) that I think uses that and I think I just piggybacked off of that material. It was just like time * sine * emissive color or something if I am remembering correctly.
1 Like