Dear OpenGL GURUes
I have a question about line width, point size, and fragment shader execution
I wanted to implement the NEON effect on “lines”… so, for each vertex,
I pass as attribute a second vertex, and then I can build a line equation
on the shader…with the line equation I can compute the distance from
the fragment to the center line, and take the correct color
However, I found that only the fragments of the center line are
generated… thus, the distance is always about cero… and the resulting
fragment color is replicated in all the pixels along the width of the line
If it is true, then… it seems like I have to implement the NEON effect in image
post-processing step instead … which makes me a bit sad…
I am taking the right way, or I am wrong?
Thank you
Rhadamés