Use DXT1 when compressing PNGs with RGB format

This results in much smaller file sizes with the same quality
This commit is contained in:
clayjohn 2023-04-27 10:54:25 -07:00
parent 65d8659eb6
commit f84c6df8d1
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ EtcpakType _determine_dxt_type(Image::UsedChannels p_channels) {
case Image::USED_CHANNELS_RG: case Image::USED_CHANNELS_RG:
return EtcpakType::ETCPAK_TYPE_DXT5_RA_AS_RG; return EtcpakType::ETCPAK_TYPE_DXT5_RA_AS_RG;
case Image::USED_CHANNELS_RGB: case Image::USED_CHANNELS_RGB:
return EtcpakType::ETCPAK_TYPE_DXT5; return EtcpakType::ETCPAK_TYPE_DXT1;
case Image::USED_CHANNELS_RGBA: case Image::USED_CHANNELS_RGBA:
return EtcpakType::ETCPAK_TYPE_DXT5; return EtcpakType::ETCPAK_TYPE_DXT5;
default: default: