Fair question. Probably the fragment shader, since that's the one I
most often see a modification to. I rarely see modifications of the
vertex shader, but ChatGPT mentioned that one could use it to perturb
the locations of vertices, say in a plane, to make it move. The water vertex shader computes some extra values that are used by the fragment shader, such as mirrorCoord.
Excellent point. I should add some custom shaders to the reading. We'll go over some today.
Honestly, the main reason is that there's this huge jump between shader code we can understand to shader code that is extremely complex and not at all well documented. Consider the water shader we will look at today.
Let's look at the section on vertex shaders