Solid-wireframe model using OpenGL/Direct3D
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGwQlxuFJO8JV5zu6t7yqTRMwerf4EnKhRU2x82YJVE9Cj0WX-0tGbDky1riROiAqC4OByNXLXPYL4R9EookZnfwpwhONHgxjVpTQahW4uJqgCjoFp2n2a2LUE5AfgI98rcjyCAkAcEcsN/s1600/wishlist_solid_wireframe_map2.jpg)
Depth bias not be supported on line and point mode. In solid wireframe , we should enable polygon offset on solid model first, and then disable polygon offset on wireframe model. OpenGL: glEnable( GL_POLYGON_OFFSET_FILL ); glPolygonOffset( bias, 1 ); glDisable( GL_POLYGON_OFFSET_FILL ); D3D: device->SetRenderState( D3DRS_DEPTHBIAS, (DWORD)bias ); device ->SetRenderState( D3DRS_DEPTHBIAS, (DWORD)0 ); Reference: http://msdn.microsoft.com/en-us/library/windows/desktop/bb205599(v=vs.85).aspx http://lwjgl.org/forum/index.php?topic=1162.0;wap2