
Unity 5.x Shaders and Effects Cookbook
By :

Now that we know how to access data on a per-vertex basis, let's expand our knowledge set to include other types of data and position of a vertex.
Using a vertex function, we can access the position of each vertex in a mesh. This allows us to actually modify each individual vertex while the shader does the processing.
In this recipe, we will create a shader that will allow us to modify the positions of each vertex on a mesh with a sine wave. This technique can be used to create animations for objects such as flags or waves on an ocean.
Let's gather our assets together so that we can create the code for our Vertex Shader:
Your scene should look similar to the following screenshot:
With our scene ready to go, let's double-click...
Change the font size
Change margin width
Change background colour