mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 15:11:20 +02:00
- fixed models that flicker when intersecting with other polygons (also known as z-fighting)
This commit is contained in:
@@ -143,6 +143,7 @@ void ModelRendererGl::renderMesh(Mesh *mesh) {
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
glEnable(GL_CULL_FACE);
|
glEnable(GL_CULL_FACE);
|
||||||
|
glPolygonOffset(0.05, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//set color
|
//set color
|
||||||
|
Reference in New Issue
Block a user