Is there a vertex counter in vertex shader?

I want to know the index of each vertex, there is no vertex counter?

If my brain doesn’t fool me, I think there is one since GLSL 1.3 meaning OpenGL 3.0

Yes this is true but take care of this in your application:

>>the vertex does not come from a display list…
well, it’s frustrating.
But I can image since the displaylist allows commands and vertice to be assigned in GPU and run in parallel, counter is impossible.

http://www.opengl.org/registry/specs/EXT/gpu_shader4.txt

You dont need OpenGL 3.0 to use it. Most high end cards support it though this extension.

It is true but at first sight, it seems to suffer from the same limitations…

It is true but at first sight, it seems to suffer from the same limitations…

Those limitations basically spell, “You must be using vertex buffers,” which is going to be the only way to render once the 3.0 deprecated stuff goes away.

In short: not an onerous limitation.

Yes you are right, “limitation” is not the good word.

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