From 2a45041be3bb5b8d18f0e06b217b8ceca88f8c10 Mon Sep 17 00:00:00 2001 From: Gustavo Jaruga Cruz Date: Mon, 13 May 2024 21:18:13 -0300 Subject: [PATCH 1/2] Add normalgl to smart pick alternatives to auto-pick ambientcg textures. --- .../texture_editor/set_editor/texture_set_import_editor.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/zylann.hterrain/tools/texture_editor/set_editor/texture_set_import_editor.gd b/addons/zylann.hterrain/tools/texture_editor/set_editor/texture_set_import_editor.gd index e5fc93d..059a396 100644 --- a/addons/zylann.hterrain/tools/texture_editor/set_editor/texture_set_import_editor.gd +++ b/addons/zylann.hterrain/tools/texture_editor/set_editor/texture_set_import_editor.gd @@ -27,7 +27,7 @@ const _compress_names = ["Raw", "Lossless", "Lossy", "VRAM"] const _smart_pick_file_keywords = [ ["albedo", "color", "col", "diffuse"], ["bump", "height", "depth", "displacement", "disp"], - ["normal", "norm", "nrm"], + ["normal", "norm", "nrm", "normalgl"], ["roughness", "rough", "rgh"] ] From 28a05437b13d662e5f8361a10e5dc3359e4e2dd1 Mon Sep 17 00:00:00 2001 From: Gustavo Jaruga Cruz Date: Mon, 13 May 2024 21:25:36 -0300 Subject: [PATCH 2/2] Add smart pick alternatives to auto-pick polyhaven textures. --- .../texture_editor/set_editor/texture_set_import_editor.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/zylann.hterrain/tools/texture_editor/set_editor/texture_set_import_editor.gd b/addons/zylann.hterrain/tools/texture_editor/set_editor/texture_set_import_editor.gd index 059a396..d0411dc 100644 --- a/addons/zylann.hterrain/tools/texture_editor/set_editor/texture_set_import_editor.gd +++ b/addons/zylann.hterrain/tools/texture_editor/set_editor/texture_set_import_editor.gd @@ -25,9 +25,9 @@ const _compress_names = ["Raw", "Lossless", "Lossy", "VRAM"] # Indexed by HTerrainTextureSet.SRC_TYPE_* constants const _smart_pick_file_keywords = [ - ["albedo", "color", "col", "diffuse"], + ["albedo", "color", "col", "diffuse", "diff"], ["bump", "height", "depth", "displacement", "disp"], - ["normal", "norm", "nrm", "normalgl"], + ["normal", "norm", "nrm", "normalgl", "nor_gl"], ["roughness", "rough", "rgh"] ]