summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-11-18 16:29:08 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-11-18 22:21:28 +0100
commit4b13093251aa82f2c123c3c6a18400416fb4a710 (patch)
treeecb639d4c1972ab3eb5300cd2f5077b0883a1b46 /scene/main
parent7d9923b2e0b970602c3c6c17b94fae5badf60764 (diff)
Allow all lossless image formats to be used for VRS texture project setting
WebP can also be lossy, but the class reference now warns about the requirement to use a lossless format for the VRS texture to work correctly.
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/scene_tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp
index 81a4e3073b..7232d05feb 100644
--- a/scene/main/scene_tree.cpp
+++ b/scene/main/scene_tree.cpp
@@ -1450,7 +1450,7 @@ SceneTree::SceneTree() {
ProjectSettings::get_singleton()->set_custom_property_info("rendering/vrs/texture",
PropertyInfo(Variant::STRING,
"rendering/vrs/texture",
- PROPERTY_HINT_FILE, "*.png"));
+ PROPERTY_HINT_FILE, "*.bmp,*.png,*.tga,*.webp"));
if (vrs_mode == 1 && !vrs_texture_path.is_empty()) {
Ref<Image> vrs_image;
vrs_image.instantiate();