Hi guys,
I would like to have an identifier in every face to know wich one is into the fragment shader. I’ve tried to use gl_PrimitiveID but I get values like 10602496 or 11106432 and I only have 3968 faces.
I only use vertex and fragment shader. Should I use geometry shader to use gl_PrimitiveID? Which is the best way to assign a face value withou duplication of vertices?
Thx