Skip to content

Conversation

@ArtemVetik
Copy link
Contributor

In the previous implementation of ComputeLOD, the returned value could never reach LODCount - 1 because size is never zero.
As a result, the highest LOD was never used.

This change adds round() to the calculation to round to the nearest integer, ensuring that for very small size values the maximum LOD is correctly returned.

@GameDreamByHuo
Copy link

GameDreamByHuo commented Jan 11, 2026 via email

@jenatali jenatali merged commit 08cf1cd into microsoft:master Jan 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants