Line offset?


With polygons we have this “wonderful” feature called “polygon offset”: glPolygonOffset, GL_POLYGON_OFFSET_FILL/LINE.

Unfortunatly, GL_POLYGON_OFFSET_LINE belong to polygon rendering using glPolygonMode(GL_FRONT_AND_BACK, GL_LINE) but actually I render true lines with glDrawElements(GL_LINES, …).

Is there any way to do “line offset” for true lines?


Maybe this will help.

Thanks this matrix offset seams great!

It works just like a charme :slight_smile:

Indeed. Sometimes it’s just that simple :wink: