Skip to content

Commit 25704fd

Browse files
author
skywind3000
committed
commit new mini3d.c
1 parent 89d07bd commit 25704fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mini3d.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,11 @@ int transform_check_cvv(const vector_t *v) {
279279
float w = v->w;
280280
int check = 0;
281281
if (v->z < 0.0f) check |= 1;
282-
if (v->z >= w) check |= 2;
283-
if (v->x <= -w) check |= 4;
284-
if (v->x >= w) check |= 8;
285-
if (v->y <= -w) check |= 16;
286-
if (v->y >= w) check |= 32;
282+
if (v->z > w) check |= 2;
283+
if (v->x < -w) check |= 4;
284+
if (v->x > w) check |= 8;
285+
if (v->y < -w) check |= 16;
286+
if (v->y > w) check |= 32;
287287
return check;
288288
}
289289

0 commit comments

Comments
 (0)