Although I haven’t yet got answer to the previous question, I’m asking another one
Is there any way to determine which fragment is being processed while executing in the fragment shader? eg. if line rasterization produces 8 pixels, would I be able to know exactly what pixel it is (first, second, third…) ?
the best you can do is try and figure it out based on varyings that you place on vertices.
if you know enough about your output geometry you can do this easily. but there’s no built in fragment id or anything.