summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2023-02-12 10:35:58 +0100
committerGitHub <noreply@github.com>2023-02-12 10:35:58 +0100
commitc3a04f71fd4e1b417dd579d23cf3281821f55e86 (patch)
tree5deb223b808f2ac3323bce6695d08f03f5c455c3 /scene/3d
parenta4c2d8dc7a7f74bd3769dc0616d726f7a02968e2 (diff)
parent340c3b84fd9f06f4d4a794c0a0b8e95165aeee9f (diff)
Merge pull request #73136 from clayjohn/LightmapGI-exr
Set Default compression to VRAM uncompressed for LightmapGI
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/lightmap_gi.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/3d/lightmap_gi.cpp b/scene/3d/lightmap_gi.cpp
index fb74cffc94..b4387b0f3c 100644
--- a/scene/3d/lightmap_gi.cpp
+++ b/scene/3d/lightmap_gi.cpp
@@ -163,7 +163,8 @@ Array LightmapGIData::_get_light_textures_data() const {
config->set_value("remap", "importer", "2d_array_texture");
config->set_value("remap", "type", "CompressedTexture2DArray");
if (!config->has_section_key("params", "compress/mode")) {
- config->set_value("params", "compress/mode", 2); //user may want another compression, so leave it be
+ // User may want another compression, so leave it be, but default to VRAM uncompressed.
+ config->set_value("params", "compress/mode", 3);
}
config->set_value("params", "compress/channel_pack", 1);
config->set_value("params", "mipmaps/generate", false);