Skip to content

Wireframe z-fighting and missing pixel fixes

Manish Mathai requested to merge (removed):wireframe-fixes into master

This MR contains the following:

  • Solves z-fighting issues with two fixes:
    • A small offset, proportional to distance between near and far planes, is applied in camera space to the edges.
    • The minimum screen space offset is increased.
  • Solves missing pixel issues by rounding off the edge endpoints, to fill in empty pixels seen on uniform grids.
  • Wireframe now relies on the canvas to blend with the background instead of eagerly doing it at the start.

Merge request reports

Loading