Original Post
Does anyone know where I can find more information behind the math in OpenGL's glPolygonOffset routine? I have a 3D engine I use for mobile devices and I want to reproduce this function in my own code. Thanks. Here's the info about glPolygonOffset: http://www.opengl.org/resources/faq/technical/polygonoffset.htm#0020
Quote:
Polygon offset allows the application to specify a depth offset with two parameters, factor and units. factor scales the maximum Z slope, with respect to X or Y of the polygon, and units scales the minimum resolvable depth buffer value. The results are summed to produce the depth offset. This offset is applied in screen space, typically with positive Z pointing into the screen.