Step right on through

- 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
This commit is contained in:
Jozufozu 2025-02-02 11:14:04 -08:00
parent ce111b1f5c
commit 357c116286

View file

@ -116,7 +116,7 @@ public class DepthPyramid {
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;