aboutsummaryrefslogtreecommitdiff
path: root/game/addons/zylann.hterrain/tools/util/resource_importer_texture.gd
diff options
context:
space:
mode:
author Gone2Daly <71726742+Gone2Daly@users.noreply.github.com>2023-07-22 21:05:42 +0200
committer Gone2Daly <71726742+Gone2Daly@users.noreply.github.com>2023-07-22 21:05:42 +0200
commit71b3cd829f80de4c2cd3972d8bfd5ee470a5d180 (patch)
treeb4280fde6eef2ae6987648bc7bf8e00e9011bb7f /game/addons/zylann.hterrain/tools/util/resource_importer_texture.gd
parentce9022d0df74d6c33db3686622be2050d873ab0b (diff)
init_testtest3d
Diffstat (limited to 'game/addons/zylann.hterrain/tools/util/resource_importer_texture.gd')
-rw-r--r--game/addons/zylann.hterrain/tools/util/resource_importer_texture.gd19
1 files changed, 19 insertions, 0 deletions
diff --git a/game/addons/zylann.hterrain/tools/util/resource_importer_texture.gd b/game/addons/zylann.hterrain/tools/util/resource_importer_texture.gd
new file mode 100644
index 0000000..b24f0e2
--- /dev/null
+++ b/game/addons/zylann.hterrain/tools/util/resource_importer_texture.gd
@@ -0,0 +1,19 @@
+@tool
+
+# Stuff not exposed by Godot for making .import files
+
+const COMPRESS_LOSSLESS = 0
+const COMPRESS_LOSSY = 1
+const COMPRESS_VRAM_COMPRESSED = 2
+const COMPRESS_VRAM_UNCOMPRESSED = 3
+const COMPRESS_BASIS_UNIVERSAL = 4
+
+const ROUGHNESS_DETECT = 0
+const ROUGHNESS_DISABLED = 1
+# Godot internally subtracts 2 to magically obtain a `Image.RoughnessChannel` enum
+# (also not exposed)
+const ROUGHNESS_RED = 2
+const ROUGHNESS_GREEN = 3
+const ROUGHNESS_BLUE = 4
+const ROUGHNESS_ALPHA = 5
+const ROUGHNESS_GRAY = 6