From b0e689f15213c8c25f5be8d05924b3bc3c270911 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 26 Sep 2024 18:15:09 -0700 Subject: [PATCH] demo: Add polygonOffsetFactor for debug visualization Constant offset is not quite enough to make sure the visualization lines cleanly render on top of solid geometry. --- demo/simplify.html | 1 + 1 file changed, 1 insertion(+) diff --git a/demo/simplify.html b/demo/simplify.html index f4fb95e0b..609fa1ce5 100644 --- a/demo/simplify.html +++ b/demo/simplify.html @@ -339,6 +339,7 @@ // use small depth offset to avoid overlay z-fighting with the original mesh // has to be done on the main material as overlays use lines that don't support depth offset object.material.polygonOffset = true; + object.material.polygonOffsetFactor = 0.5; object.material.polygonOffsetUnits = 16; object.material = [