DS GX: Finish box test

This commit is contained in:
Vicki Pfau 2017-03-11 20:25:08 -05:00
parent 8a3dabdf60
commit 4b513e23ee
1 changed files with 8 additions and 2 deletions

View File

@ -385,13 +385,19 @@ static bool _boxTestVertex(struct DSGX* gx, struct DSGXVertex* vertex) {
if (vx < gx->viewportX1) { if (vx < gx->viewportX1) {
return false; return false;
} }
if (vx >= gx->viewportX2) { if (vx > gx->viewportX2) {
return false; return false;
} }
if (vy < gx->viewportY1) { if (vy < gx->viewportY1) {
return false; return false;
} }
if (vy >= gx->viewportY2) { if (vy > gx->viewportY2) {
return false;
}
if (vz < -vw) {
return false;
}
if (vz > vw) {
return false; return false;
} }
// TODO: depth clipping // TODO: depth clipping