How to do gouraud shading?

Finally got it working. Still got a few problems, but I will be sorting them out shortly. If anyone is looking for similar shading, I can link you the shaders I am working on.