diff options
Diffstat (limited to 'src/core/device.c')
-rw-r--r-- | src/core/device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/device.c b/src/core/device.c index 23e4bb3..70ae11f 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -500,6 +500,7 @@ static void render_prims_triangle(uint varying_flag) { /*back face culling*/ if (ssr_isenable(ENABLE_BACKFACECULL)) { + /*cull in ndc*/ float w0 = 1 / c0->w, w1 = 1 / c1->w, w2 = 1 / c2->w; Vec3 ab, ac; ab.x = c1->x * w1 - c0->x * w0; |