From 369684283a08285c1dbe0bffc6b334bcc144a5d4 Mon Sep 17 00:00:00 2001 From: benfry Date: Mon, 24 Nov 2008 05:26:04 +0000 Subject: [PATCH] stroked lines drawing on top of everything else in P3D (bug #1032) --- core/src/processing/core/PSmoothTriangle.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/processing/core/PSmoothTriangle.java b/core/src/processing/core/PSmoothTriangle.java index 7dd2285a2..ba692fefd 100644 --- a/core/src/processing/core/PSmoothTriangle.java +++ b/core/src/processing/core/PSmoothTriangle.java @@ -384,7 +384,7 @@ public class PSmoothTriangle implements PConstants { if (rx > parent.width1) rx = parent.width1; } -// System.out.println("P3D interp uv " + interpUV + " " + +// System.out.println("P3D interp uv " + interpUV + " " + // vertices[2][U] + " " + vertices[2][V]); interpX = false; @@ -394,8 +394,8 @@ public class PSmoothTriangle implements PConstants { // added == because things on same plane weren't replacing each other // makes for strangeness in 3D [ewj: yup!], but totally necessary for 2D - if (noDepthTest || (sp[Z] < zbuffer[offset+x])) { - //if (noDepthTest || (sp[Z] <= zbuffer[offset+x])) { + //if (noDepthTest || (sp[Z] < zbuffer[offset+x])) { + if (noDepthTest || (sp[Z] <= zbuffer[offset+x])) { //if (true) { // map texture based on U, V coords in sp[U] and sp[V]