How to do gouraud shading?

Here is a link to my test project that contains the shader and a test model to see it in action.