File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2118,12 +2118,12 @@ static inline int sw_clip_##name(
21182118// Frustum cliping functions
21192119//-------------------------------------------------------------------------------------------
21202120#define IS_INSIDE_PLANE_W (h ) ((h)[3] >= SW_CLIP_EPSILON)
2121- #define IS_INSIDE_PLANE_X_POS (h ) ((h)[0] <= (h)[3])
2122- #define IS_INSIDE_PLANE_X_NEG (h ) (-(h)[0] <= (h)[3])
2123- #define IS_INSIDE_PLANE_Y_POS (h ) ((h)[1] <= (h)[3])
2124- #define IS_INSIDE_PLANE_Y_NEG (h ) (-(h)[1] <= (h)[3])
2125- #define IS_INSIDE_PLANE_Z_POS (h ) ((h)[2] <= (h)[3])
2126- #define IS_INSIDE_PLANE_Z_NEG (h ) (-(h)[2] <= (h)[3])
2121+ #define IS_INSIDE_PLANE_X_POS (h ) ( (h)[0] < (h)[3]) // Exclusive for +X
2122+ #define IS_INSIDE_PLANE_X_NEG (h ) (-(h)[0] < (h)[3]) // Exclusive for -X
2123+ #define IS_INSIDE_PLANE_Y_POS (h ) ( (h)[1] < (h)[3]) // Exclusive for +Y
2124+ #define IS_INSIDE_PLANE_Y_NEG (h ) (-(h)[1] < (h)[3]) // Exclusive for -Y
2125+ #define IS_INSIDE_PLANE_Z_POS (h ) ( (h)[2] <= (h)[3]) // Inclusive for +Z
2126+ #define IS_INSIDE_PLANE_Z_NEG (h ) (-(h)[2] <= (h)[3]) // Inclusive for -Z
21272127
21282128#define COMPUTE_T_PLANE_W (hPrev , hCurr ) ((SW_CLIP_EPSILON - (hPrev)[3])/((hCurr)[3] - (hPrev)[3]))
21292129#define COMPUTE_T_PLANE_X_POS (hPrev , hCurr ) (((hPrev)[3] - (hPrev)[0])/(((hPrev)[3] - (hPrev)[0]) - ((hCurr)[3] - (hCurr)[0])))
You can’t perform that action at this time.
0 commit comments