mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-02-09 19:55:02 +01:00
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:
parent
ce111b1f5c
commit
357c116286
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue