From dfe33c099d36dad6d2a62ff583e7354df0a73cca Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 10 Feb 2026 18:53:17 +0100 Subject: feat: Add --shader-only option to convert_shadertoy.py Allows regenerating just the .wgsl shader file without touching .h/.cc files when iterating on shader code. Usage: ./tools/shadertoy/convert_shadertoy.py shader.txt EffectName --shader-only Co-Authored-By: Claude Sonnet 4.5 --- tools/shadertoy/README.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/shadertoy/README.md') diff --git a/tools/shadertoy/README.md b/tools/shadertoy/README.md index d12865f..283a65f 100644 --- a/tools/shadertoy/README.md +++ b/tools/shadertoy/README.md @@ -19,6 +19,9 @@ EOF # Generate effect files ./tools/shadertoy/convert_shadertoy.py tunnel.txt Tunnel +# Regenerate only shader (if .h/.cc already exist) +./tools/shadertoy/convert_shadertoy.py tunnel.txt Tunnel --shader-only + # Follow printed instructions to integrate ``` -- cgit v1.2.3