I have a view where a 3D model is rendered in solid wire frame mode. I achieve this by rendering in solid mode first then followed by wire frame mode. The lines are not continuous with flickering artifact…This is due to Z-fighting even if I the depth compare is less_or_equal. Tried the poly offset but did not work well since it has other side effect on the rendering.
Stencil approach does not work with concave/complex polyhedral geometry, as there will be front facing polys but still culled.
Offsetting the vertices by their normals when rendering wire frame is an option but first I want to make sure there’s no shader based technique which is simpler and more accurate.