From 48119a30eb5e085cd9b87ea02b9e0fb28889ef64 Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Sun, 27 Oct 2024 00:00:00 +0000 Subject: [PATCH] feat(anime4k): added version name to Anime4K GLSL shader files Signed-off-by: k4yt3x --- .../libplacebo/{anime4k-a+a.glsl => anime4k-v4-a+a.glsl} | 0 models/libplacebo/{anime4k-a.glsl => anime4k-v4-a.glsl} | 0 .../libplacebo/{anime4k-b+b.glsl => anime4k-v4-b+b.glsl} | 0 models/libplacebo/{anime4k-b.glsl => anime4k-v4-b.glsl} | 0 .../libplacebo/{anime4k-c+a.glsl => anime4k-v4-c+a.glsl} | 0 models/libplacebo/{anime4k-c.glsl => anime4k-v4-c.glsl} | 0 .../{anime4k-gan.glsl => anime4k-v4.1-gan.glsl} | 0 scripts/download_merge_anime4k_glsl.py | 8 +++++++- 8 files changed, 7 insertions(+), 1 deletion(-) rename models/libplacebo/{anime4k-a+a.glsl => anime4k-v4-a+a.glsl} (100%) rename models/libplacebo/{anime4k-a.glsl => anime4k-v4-a.glsl} (100%) rename models/libplacebo/{anime4k-b+b.glsl => anime4k-v4-b+b.glsl} (100%) rename models/libplacebo/{anime4k-b.glsl => anime4k-v4-b.glsl} (100%) rename models/libplacebo/{anime4k-c+a.glsl => anime4k-v4-c+a.glsl} (100%) rename models/libplacebo/{anime4k-c.glsl => anime4k-v4-c.glsl} (100%) rename models/libplacebo/{anime4k-gan.glsl => anime4k-v4.1-gan.glsl} (100%) diff --git a/models/libplacebo/anime4k-a+a.glsl b/models/libplacebo/anime4k-v4-a+a.glsl similarity index 100% rename from models/libplacebo/anime4k-a+a.glsl rename to models/libplacebo/anime4k-v4-a+a.glsl diff --git a/models/libplacebo/anime4k-a.glsl b/models/libplacebo/anime4k-v4-a.glsl similarity index 100% rename from models/libplacebo/anime4k-a.glsl rename to models/libplacebo/anime4k-v4-a.glsl diff --git a/models/libplacebo/anime4k-b+b.glsl b/models/libplacebo/anime4k-v4-b+b.glsl similarity index 100% rename from models/libplacebo/anime4k-b+b.glsl rename to models/libplacebo/anime4k-v4-b+b.glsl diff --git a/models/libplacebo/anime4k-b.glsl b/models/libplacebo/anime4k-v4-b.glsl similarity index 100% rename from models/libplacebo/anime4k-b.glsl rename to models/libplacebo/anime4k-v4-b.glsl diff --git a/models/libplacebo/anime4k-c+a.glsl b/models/libplacebo/anime4k-v4-c+a.glsl similarity index 100% rename from models/libplacebo/anime4k-c+a.glsl rename to models/libplacebo/anime4k-v4-c+a.glsl diff --git a/models/libplacebo/anime4k-c.glsl b/models/libplacebo/anime4k-v4-c.glsl similarity index 100% rename from models/libplacebo/anime4k-c.glsl rename to models/libplacebo/anime4k-v4-c.glsl diff --git a/models/libplacebo/anime4k-gan.glsl b/models/libplacebo/anime4k-v4.1-gan.glsl similarity index 100% rename from models/libplacebo/anime4k-gan.glsl rename to models/libplacebo/anime4k-v4.1-gan.glsl diff --git a/scripts/download_merge_anime4k_glsl.py b/scripts/download_merge_anime4k_glsl.py index 35a5c57..2dd5b63 100755 --- a/scripts/download_merge_anime4k_glsl.py +++ b/scripts/download_merge_anime4k_glsl.py @@ -78,7 +78,13 @@ def download_and_combine_files(): response.raise_for_status() file_contents += response.text + "\n" - with (SHADERS_DIR / Path(f"anime4k-{mode}.glsl")).open("w") as output_file: + version = "v4" + if mode == "gan": + version = "v4.1" + + with (SHADERS_DIR / Path(f"anime4k-{version}-{mode}.glsl")).open( + "w" + ) as output_file: output_file.write(file_contents)