Android – how to disable color interpolation in OpenGL es 2.0?
•
Android
Since there is no option of plane shading in OpenGL, is there a solution to disable color interpolation when different colors are passed to each vertex?
resolvent:
Basically, the only way is to use triangle painting instead of triangle strips or fans. And use the same color for each group of three vertices to form a single triangle. That will remove the shadow effect and cause the interpolation between the same colors to be the same color. @ h_ 419_ 5 @ more complex explanation: http://ruh.li/GraphicsShading.html
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码