Vertex texture Fetch (Texture reads in vertex shader)

New to Opengl and GLSL.

I am using OpenGL es 3.0 and my GLSL version #version 300 es.

i want to get pixel(ARGB data) at every position in my vertex shader(vertex texture fetch). i have verified that my Android tablet supports vertex texture fetch.

Now i pass in the texture(image) and Texture coordinates to the vertex shader and execute

GLES30.glDrawArrays(GLES30.GL_TRIANGLE_STRIP, 0, 4);

Is this the right way or should i use GL_POINTS . if i am using GL_POINTS how to pass the texture cooordinate?

could you provide any samples/example code that does a full pixel read(ARGB) in the vertex shader.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.