You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use ETC2 compression for grayscale images
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
EtcpakType _determine_etc_type(Image::UsedChannels p_channels) {
|
EtcpakType _determine_etc_type(Image::UsedChannels p_channels) {
|
||||||
switch (p_channels) {
|
switch (p_channels) {
|
||||||
case Image::USED_CHANNELS_L:
|
case Image::USED_CHANNELS_L:
|
||||||
return EtcpakType::ETCPAK_TYPE_ETC1;
|
return EtcpakType::ETCPAK_TYPE_ETC2;
|
||||||
case Image::USED_CHANNELS_LA:
|
case Image::USED_CHANNELS_LA:
|
||||||
return EtcpakType::ETCPAK_TYPE_ETC2_ALPHA;
|
return EtcpakType::ETCPAK_TYPE_ETC2_ALPHA;
|
||||||
case Image::USED_CHANNELS_R:
|
case Image::USED_CHANNELS_R:
|
||||||
|
|||||||
Reference in New Issue
Block a user