T2.2 Draw triangles with vertex colours using shaders

Github code

Taking the X axis as Red and the Y axis as green, we can assign RGB values to each vertex

What we get

Last updated