Skip to content

Commit

Permalink
AABB box -> AABB aabb
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbot16 committed Sep 14, 2021
1 parent 67f3e14 commit 5f2710f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public void setPosition(double cameraX, double cameraY, double cameraZ) {
this.maxAllowedZ = cameraZ + maxDistance;
}

public boolean isCulled(AABB box) {
return isCulled((float) box.minX, (float) box.minY, (float) box.minZ,
(float) box.maxX, (float) box.maxY, (float) box.maxZ);
public boolean isCulled(AABB aabb) {
return isCulled((float) aabb.minX, (float) aabb.minY, (float) aabb.minZ,
(float) aabb.maxX, (float) aabb.maxY, (float) aabb.maxZ);
}

public boolean isCulled(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public boolean canDetermineInvisible(double minX, double minY, double minZ, doub
}

@Override
public boolean isVisible(AABB box) {
public boolean isVisible(AABB aabb) {
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public boolean preAabbTest(float minX, float minY, float minZ, float maxX, float
}

@Override
public boolean isVisible(AABB box) {
if (boxCuller.isCulled(box)) {
public boolean isVisible(AABB aabb) {
if (boxCuller.isCulled(aabb)) {
return false;
}

return super.isVisible(box);
return super.isVisible(aabb);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ public void prepare(double cameraX, double cameraY, double cameraZ) {
}

@Override
public boolean isVisible(AABB box) {
if (boxCuller != null && boxCuller.isCulled(box)) {
public boolean isVisible(AABB aabb) {
if (boxCuller != null && boxCuller.isCulled(aabb)) {
return false;
}

return this.isVisible(box.minX, box.minY, box.minZ, box.maxX, box.maxY, box.maxZ);
return this.isVisible(aabb.minX, aabb.minY, aabb.minZ, aabb.maxX, aabb.maxY, aabb.maxZ);
}

// For Sodium
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public boolean canDetermineInvisible(double minX, double minY, double minZ, doub
}

@Override
public boolean isVisible(AABB box) {
return !boxCuller.isCulled(box);
public boolean isVisible(AABB aabb) {
return !boxCuller.isCulled(aabb);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public boolean canDetermineInvisible(double minX, double minY, double minZ, doub
}

@Override
public boolean isVisible(AABB box) {
public boolean isVisible(AABB aabb) {
return true;
}
}

0 comments on commit 5f2710f

Please sign in to comment.