Handling User Defined shaders in OpenGL ES 2.0 framework -
i developing frame-based animation framework in opengl es 2.0 develop 3d graphics applications.
i have used few pre-defined shaders (for color, texture, alpha....) attributes , uniform known.
now want handle user given shaders. loading, compiling , linking these shaders fine. how map attributes , uniforms corresponding data.
suppose, in user given shader, vertex data has passed attribute "a_vertex". in other shader, may "a_myvertex". name of attribute pass vertex data different different user given shaders.
my question how handle mapping of shader attributes , uniforms in user given shaders.
please give suggestions this.
thanks...
Comments
Post a Comment