From 357c11628607364a8915f3ebd6361a5f1cc4793e Mon Sep 17 00:00:00 2001 From: Jozufozu Date: Sun, 2 Feb 2025 11:14:04 -0800 Subject: [PATCH] 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 --- .../flywheel/backend/engine/indirect/DepthPyramid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/backend/java/dev/engine_room/flywheel/backend/engine/indirect/DepthPyramid.java b/common/src/backend/java/dev/engine_room/flywheel/backend/engine/indirect/DepthPyramid.java index d59a153ad..d09f4b098 100644 --- a/common/src/backend/java/dev/engine_room/flywheel/backend/engine/indirect/DepthPyramid.java +++ b/common/src/backend/java/dev/engine_room/flywheel/backend/engine/indirect/DepthPyramid.java @@ -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;