From adbf0ba796c0d0706637936c9474a98947ee1114 Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 10 Feb 2026 00:30:01 +0100 Subject: fix: Use var instead of let for mutable uv in default shader Co-Authored-By: Claude Sonnet 4.5 --- tools/shader_editor/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/shader_editor') diff --git a/tools/shader_editor/index.html b/tools/shader_editor/index.html index 4889046..269a752 100644 --- a/tools/shader_editor/index.html +++ b/tools/shader_editor/index.html @@ -457,7 +457,7 @@ struct CommonUniforms { } @fragment fn fs_main(@builtin(position) p: vec4) -> @location(0) vec4 { - let uv = (p.xy / uniforms.resolution) * 2.0 - 1.0; + var uv = (p.xy / uniforms.resolution) * 2.0 - 1.0; uv.x *= uniforms.aspect_ratio; // Animated gradient background -- cgit v1.2.3