mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Fix ETC quality setting
This commit is contained in:
parent
545c894614
commit
072b8a1894
@ -166,12 +166,12 @@ static void _compress_etc(Image *p_img, float p_lossy_quality, bool force_etc1_f
|
||||
int encoding_time = 0;
|
||||
float effort = 0.0; //default, reasonable time
|
||||
|
||||
if (p_lossy_quality > 0.75) {
|
||||
effort = 0.4;
|
||||
if (p_lossy_quality > 0.95) {
|
||||
effort = 80;
|
||||
} else if (p_lossy_quality > 0.85) {
|
||||
effort = 0.6;
|
||||
} else if (p_lossy_quality > 0.95) {
|
||||
effort = 0.8;
|
||||
effort = 60;
|
||||
} else if (p_lossy_quality > 0.75) {
|
||||
effort = 40;
|
||||
}
|
||||
|
||||
Etc::ErrorMetric error_metric = Etc::ErrorMetric::RGBX; // NOTE: we can experiment with other error metrics
|
||||
|
Loading…
Reference in New Issue
Block a user