From d3b48593b0fee862ea60687336031fd9374ab667 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 10 Aug 2024 17:57:02 +0000 Subject: experimental A-buffer implementation. very simple, without anti-aliasing, made for getting OIT (order independent transparency) rendering of arbitrary objects. also added switches for blending, depth testing and the A-buffer to the camera. --- camera.c | 1 + 1 file changed, 1 insertion(+) (limited to 'camera.c') diff --git a/camera.c b/camera.c index 2a31738..8395c0e 100644 --- a/camera.c +++ b/camera.c @@ -126,6 +126,7 @@ newcamera(void) c = emalloc(sizeof *c); memset(c, 0, sizeof *c); + c->enabledepth = 1; return c; } -- cgit v1.2.3