Preserve low res textures

Any texture less than 64x64 keep original size.  Improves building LOD texture quality, and doesn't blow VRAM budget
This commit is contained in:
Josh Pearson 2025-01-09 14:06:57 -07:00
parent 2065c9a93f
commit 986921cc9c

View File

@ -3887,19 +3887,19 @@ imageFindRasterFormat(Image *img, int32 type,
;
if(downsampleMode >= HALF) {
if(height / 2 >= 16) {
if(height / 2 >= 64) {
height /= 2;
}
if(width / 2 >= 16) {
if(width / 2 >= 64) {
width /= 2;
}
}
if(downsampleMode >= QUARTER) {
if(height / 2 >= 16) {
if(height / 2 >= 32) {
height /= 2;
}
if(width / 2 >= 16) {
if(width / 2 >= 32) {
width /= 2;
}
}