From a954a77c91b60f958126f099543443c2b711c755 Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 10 Feb 2026 00:27:52 +0100 Subject: feat: Add HTML WGSL shader editor tool ShaderToy-like web tool for live WGSL shader editing with WebGPU preview. Features: - Live WebGPU preview with real-time shader updates - Shader composition: #include directive support - Animation controls: time, loop_time (0..1), audio_peak - File I/O: Load/save .wgsl files - CommonUniforms binding (resolution, time, beat, audio_intensity) - Keyboard shortcuts: Ctrl+S (save), Ctrl+O (load), Space (play/pause) Single-file HTML (no build step, no CORS issues). handoff(Claude): Implemented HTML WGSL shader editor per plan Co-Authored-By: Claude Sonnet 4.5 --- tools/shader_editor/index.html | 767 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 767 insertions(+) create mode 100644 tools/shader_editor/index.html (limited to 'tools/shader_editor/index.html') diff --git a/tools/shader_editor/index.html b/tools/shader_editor/index.html new file mode 100644 index 0000000..d74b9ff --- /dev/null +++ b/tools/shader_editor/index.html @@ -0,0 +1,767 @@ + + + + + + WGSL Shader Editor + + + +
+
+ + +
FPS: 0
+ +
+
+ + +
+ +
+ +
+
+
+
+ +
+ +
+ +
+ +
+ +
+ + 0.50 + +
+ +
+ +
+
+
+ +
+
+ + + + +
+ + + + +
+
+ + + + -- cgit v1.2.3