diff options
author | Morris Tabor <80684659+mortarroad@users.noreply.github.com> | 2021-04-12 18:56:50 +0200 |
---|---|---|
committer | Morris Tabor <80684659+mortarroad@users.noreply.github.com> | 2021-06-11 18:46:04 +0200 |
commit | 1bc1e942089043418cc4415af313b86e4155bff6 (patch) | |
tree | 5f4401ee3515d991ee905d46639c37310b3776fa /servers | |
parent | 9990f28d8414e27843eb0626fbf7f0277e6c9130 (diff) |
Implement lossless WebP encoding
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering_server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp index 4741e90a81..349330afd1 100644 --- a/servers/rendering_server.cpp +++ b/servers/rendering_server.cpp @@ -2282,6 +2282,10 @@ RenderingServer::RenderingServer() { GLOBAL_DEF_RST("rendering/textures/vram_compression/import_etc2", true); GLOBAL_DEF_RST("rendering/textures/vram_compression/import_pvrtc", false); + GLOBAL_DEF("rendering/textures/lossless_compression/force_png", false); + GLOBAL_DEF("rendering/textures/lossless_compression/webp_compression_level", 2); + ProjectSettings::get_singleton()->set_custom_property_info("rendering/textures/lossless_compression/webp_compression_level", PropertyInfo(Variant::INT, "rendering/textures/lossless_compression/webp_compression_level", PROPERTY_HINT_RANGE, "0,9,1")); + GLOBAL_DEF("rendering/limits/time/time_rollover_secs", 3600); ProjectSettings::get_singleton()->set_custom_property_info("rendering/limits/time/time_rollover_secs", PropertyInfo(Variant::FLOAT, "rendering/limits/time/time_rollover_secs", PROPERTY_HINT_RANGE, "0,10000,1,or_greater")); |