Is it possible to have persistent data within the same shader? Something like a uniform, except that the shader itself can set it.
What I'm trying to do is embed a vertex in my vertex stream that will act as a "state change" and affect an operation on all vertices downstream. I.E. the vertex shader says "ah, I hit this vertex" and turns a boolean on or off... and later vertices can check that boolean. It doesn't need to work between shaders, it just needs to work during a single pump of vertices.
Is this possible? Using GLSL.