Emulating the GLSL flat qualifier in GLSL 120
I want to emulate flat shading in GLSL shader. I usually do this by passing normal with a
classifier to prevent interpolation in the fragment shader. However,
not available in GLSL 120.
How can I emulate it without duplicating vertex data? (This is not a premature optimization, but rather a posthumous one.)
source to share