1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

BasisU: Configure HDR quality from the settings

This commit is contained in:
BlueCube3310
2025-05-05 23:56:24 +02:00
parent 1a1cc0f7b0
commit 894d3939cd

View File

@@ -135,7 +135,7 @@ Vector<uint8_t> basis_universal_packer(const Ref<Image> &p_image, Image::UsedCha
if (is_hdr) { if (is_hdr) {
decompress_format = BASIS_DECOMPRESS_HDR_RGB; decompress_format = BASIS_DECOMPRESS_HDR_RGB;
params.m_hdr = true; params.m_hdr = true;
params.m_uastc_hdr_4x4_options.set_quality_level(0); params.m_uastc_hdr_4x4_options.set_quality_level(p_basisu_params.uastc_level);
} else { } else {
switch (p_channels) { switch (p_channels) {