diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-10 00:30:01 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-10 00:30:01 +0100 |
| commit | adbf0ba796c0d0706637936c9474a98947ee1114 (patch) | |
| tree | 91e6f29843c2df922aa9dc1c218eabf2b49ed93a /tools/shader_editor/index.html | |
| parent | 8b76fcc652920890ac485c101e6b379bed8e3c17 (diff) | |
fix: Use var instead of let for mutable uv in default shader
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'tools/shader_editor/index.html')
| -rw-r--r-- | tools/shader_editor/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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<f32>) -> @location(0) vec4<f32> { - 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 |
