From c69735e24f7c5926ed63ff8c5292be282aa8b240 Mon Sep 17 00:00:00 2001 From: rodri Date: Fri, 14 Jun 2024 15:01:15 +0000 Subject: fix the barycoords routine to avoid reporting false degenerates. added a normals buffer for debugging. --- graphics.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'graphics.h') diff --git a/graphics.h b/graphics.h index 17ce25e..7b46ed7 100644 --- a/graphics.h +++ b/graphics.h @@ -227,6 +227,7 @@ struct Framebuf { ulong *cb; /* color buffer */ double *zb; /* z/depth buffer */ + ulong *nb; /* normals buffer (DBG only) */ Rectangle r; }; @@ -238,6 +239,7 @@ struct Framebufctl void (*draw)(Framebufctl*, Image*); void (*memdraw)(Framebufctl*, Memimage*); + void (*drawnormals)(Framebufctl*, Image*); void (*swap)(Framebufctl*); void (*reset)(Framebufctl*); Framebuf *(*getfb)(Framebufctl*); -- cgit v1.2.3