From ff0a5342107a72ba319ac88a94ad433cf38c19fd Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 28 Feb 2026 11:52:57 +0100 Subject: fix(shadertoy): update convert_shadertoy.py shader output path to src/effects/ Shader output and Next Steps instructions now use src/effects/.wgsl instead of workspaces/main/shaders/.wgsl. Co-Authored-By: Claude Sonnet 4.6 --- tools/shadertoy/convert_shadertoy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/shadertoy') diff --git a/tools/shadertoy/convert_shadertoy.py b/tools/shadertoy/convert_shadertoy.py index eb6ab63..53ef276 100755 --- a/tools/shadertoy/convert_shadertoy.py +++ b/tools/shadertoy/convert_shadertoy.py @@ -12,7 +12,7 @@ # Generates: # - src/effects/_effect.h # - src/effects/_effect.cc -# - workspaces/main/shaders/.wgsl +# - src/effects/.wgsl # # The script performs basic ShaderToy→WGSL conversion: # - Converts types (float→f32, vec2→vec2f, etc.) @@ -334,7 +334,7 @@ def main(): print("This will generate:") print(" src/effects/_effect.h") print(" src/effects/_effect.cc") - print(" workspaces/main/shaders/.wgsl") + print(" src/effects/.wgsl") sys.exit(1) shader_file = sys.argv[1] @@ -363,7 +363,7 @@ def main(): repo_root = Path(__file__).parent.parent.parent header_path = repo_root / "src" / "effects" / f"{snake_name}_effect.h" impl_path = repo_root / "src" / "effects" / f"{snake_name}_effect.cc" - shader_path = repo_root / "workspaces" / "main" / "shaders" / f"{snake_name}.wgsl" + shader_path = repo_root / "src" / "effects" / f"{snake_name}.wgsl" # Generate files if shader_only: @@ -397,7 +397,7 @@ def main(): print("Next steps (see doc/EFFECT_WORKFLOW.md for details):") print() print("1. Add shader to workspaces/main/assets.txt:") - print(f" SHADER_{upper_name}, NONE, shaders/{snake_name}.wgsl, \"{effect_name} effect\"") + print(f" SHADER_{upper_name}, NONE, ../../src/effects/{snake_name}.wgsl, \"{effect_name} effect\"") print() print("2. Add shader declaration to src/effects/shaders.h:") print(f" extern const char* {snake_name}_shader_wgsl;") -- cgit v1.2.3