Skip to content

Commit

Permalink
Step right on through
Browse files Browse the repository at this point in the history
- Fix culling for meshes that occupy a significant portion of the screen
  and have their corners occluded but center visible
- We actually just need to generate one more mip level, crunching the
  entire frame down into a single pixel
  • Loading branch information
Jozufozu committed Feb 2, 2025
1 parent ce111b1 commit 357c116
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static int mip0Size(int screenSize) {
public static int getImageMipLevels(int width, int height) {
int result = 1;

while (width > 2 && height > 2) {
while (width > 1 && height > 1) {
result++;
width >>= 1;
height >>= 1;
Expand Down

0 comments on commit 357c116

Please sign in to comment.