mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-01-31 21:11:43 +01:00
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:
parent
2065c9a93f
commit
986921cc9c
8
vendor/librw/src/dc/rwdc.cpp
vendored
8
vendor/librw/src/dc/rwdc.cpp
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user