Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,17 @@ public void renderPost(Matrix4f fromProjection, Matrix4f tooProjection, int outp
glBindTexture(GL_TEXTURE_2D, this.didSSAO?this.colourSSAO.id:this.colour.id);
glEnable(GL_DEPTH_TEST);
glDepthMask(true);

// This helps avoid some overlap and z fighting in transparency.
glEnable( GL_POLYGON_OFFSET_FILL );
glPolygonOffset( 1.0f, 4.0f );
glDepthFunc(GL_LESS);

this.blitTexture.blit();
glDisable(GL_DEPTH_TEST);
glDepthMask(true);
glDisable( GL_POLYGON_OFFSET_FILL );
glDepthFunc(GL_LEQUAL);

this.glStateCapture.restore();
}
Expand Down