Add proper way to incorporate flat shading
I didn't add it for multiple reasons: This is purely an artistic effect The implementation of this in the fragment shader is poorly defined (due to the GLSL functions used) It is expensive to do on the GPU with normal mapping If you want to do it by code, do this instead: Generate 3 vertices per triangle Do not share vertices Then, you'll get flat shading this way. I don't think it should even be an option to turn on. The problem is that you're going to get users who just turn in on for an OR room or something, and this will heavily affect the fillrate. Here's another thing to keep in mind as well, what if you want half flat shading and half smooth shading? There's no common way to do this except by generating the art correctly: https://blender.stackexchange.com/questions/23596/smooth-shaded-model-has-odd-shading
You will also be able to use normal maps in the future to correct for harsh edges if you want to.
Hi Nick, Got it! But for now we will add it as an option and turned off by default. We need to do this because Andinet wants the standalone demo application code to work directly on master (not on any branch). I'll create an issue with the explanation you provided. Thanks.