I’d like to implement something similar to the Q2/Q3 r_showtris command, where you can see a white outline around each triangle.
I’ve been able to get a similar effect using glPolygonMode and rendering each frame twice, once with GL_FILL and once with GL_LINE, but this requires an if for every texture bind, glColor, etc… to make sure the tri outlines are white and untextured.
Is there any cleaner way (ie. minimal additional logic during the main render) to do this? How does Q2/Q3 do it?