diff options
author | BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> | 2024-01-07 12:53:01 +0100 |
---|---|---|
committer | BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com> | 2024-01-07 12:53:01 +0100 |
commit | 51ad937532fb2c00f89326ac1e102a56829df2ae (patch) | |
tree | 200dfd7809575f257ad60a2be08614726d5916ef /modules/basis_universal | |
parent | 89cc635c0554cb2e518c830969ca4c5eedda0f4e (diff) | |
download | redot-engine-51ad937532fb2c00f89326ac1e102a56829df2ae.tar.gz |
Fix BasisUniversal ETC RA_AS_RG transcoding
Diffstat (limited to 'modules/basis_universal')
-rw-r--r-- | modules/basis_universal/register_types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/basis_universal/register_types.cpp b/modules/basis_universal/register_types.cpp index 7c0bc4ac82..f538fc6676 100644 --- a/modules/basis_universal/register_types.cpp +++ b/modules/basis_universal/register_types.cpp @@ -221,7 +221,7 @@ static Ref<Image> basis_universal_unpacker_ptr(const uint8_t *p_data, int p_size imgfmt = Image::FORMAT_DXT5_RA_AS_RG; } else if (RS::get_singleton()->has_os_feature("etc2")) { format = basist::transcoder_texture_format::cTFETC2; // get this from renderer - imgfmt = Image::FORMAT_ETC2_RGBA8; + imgfmt = Image::FORMAT_ETC2_RA_AS_RG; } else { //opengl most likely, bad for normal maps, nothing to do about this. format = basist::transcoder_texture_format::cTFRGBA32; |