I am just getting started developing Games with OpenGL ES 2.0 on Android and I have a Problem. I want to know how I can manage my Shaders. Therefor I have a little example:
Let's say I want to render two primitives, a square and a triangle. Beside I have two Shader Programs each consists of one Fragment and one Vertex Shader. These are all compiled and installed.
I already know that I have to use Vertex Attributes and in OpenGL ES 2.0 there are at least 8 Attributes avaliable.
Now I want that the Square will go through the two Shader Programs but the Triangle should only passed through the first one.
What is the best way to do that?
Thank you very much.