From e5e995103377f9bb79123ef8257d8680ed0945fc Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 18 Jul 2020 02:48:39 +0800 Subject: *late culling --- src/core/clip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/clip.c') diff --git a/src/core/clip.c b/src/core/clip.c index 2880448..d5de4fc 100644 --- a/src/core/clip.c +++ b/src/core/clip.c @@ -145,7 +145,7 @@ static bool is_inside_plane(Vec4* c, Plane plane) { case NEGATIVE_Y: return c->y >= -c->w; case POSITIVE_Z: - return c->z <= +c->w; + return c->z <= c->w; case NEGATIVE_Z: return c->z >= -c->w; default: -- cgit v1.1-26-g67d0