Recently I began to use qt3d (with it's QGlView and QGLSceneNode). I provide per-vertex normals for generated model and now want to use GL_FLAT shading model for my modeling app. But simple call to glShadeModel(GL_FLAT) doesnt do anything - shading is doing look like in smooth mode
I tried to find where qt3d/qopengl calls that function but besides QGLBuilder couldn't find anything.
It seems to me that I have to do something with QOpenGLContext to make native opengl functions work (I have same problems with some other opengl functions)
or maybe QGLPainter/QGLSceneNode internally sets shading model and I have not to use it at all?