You've already forked godot
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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user