PDA

View Full Version : Replacement for glShadeModel on OpenGL ES 2.0



VansFannel
11-17-2010, 05:14 AM
Hello.

Is there any replacement for glShadeModel on OpenGL ES 2.0?

Thanks.

bmerry
08-23-2011, 02:55 AM
Unfortunately not.

If you need flat-shaded faces in ES 2.0, the only way to do it is to make duplicates of all the vertices so that each face has three unique vertices, and populate those vertices with the per-face attributes.