Consider a triangle in OpenGL or Vulkan with 2 of its vertices being green and one blue. Is there a way to disable the interpolation that GLSL does, and have the color of the entire triangle be green since there are more green vertices than blue ones?
I've heard something about the flat qualifier, but I'm not too sure if that is what I need.