CS148 - Assignment 8 - Programmable Shading - my blue / purple paper flapping in the wind

jschsu@stanford.edu

A video of my animated displacement mapping:



I used a simple cosine displacement function that depended only the x position. I added a uniform variable to change the phase of the cosine throughout time. I also added an amplitude that would grow and decay exponentially over time so the wave is sometimes big, sometimes small, and sometimes not even there at all.