Alternative for gl_ModelViewProjectionMatrix * gl_Vertex in GLES

Hi,

I want to know an alternative for this in GLES

gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;

Thank you.

Replace gl_ModelViewProjectionMatrix with a user-defined uniform variable, and replace gl_Vertex with a user-defined attribute.

The matrix’ value needs to be set using glUniformMatrix4fv(), while the attribute values are supplied using glVertexAttribPointer() rather than glVertexPointer() (if the client code is using glBegin/glEnd, you’ll need to convert it to use vertex arrays).