diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-10 18:26:38 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-10 18:26:38 +0100 |
| commit | cb5cdbfb55cfa0185b2489ada75ff846f8aeab02 (patch) | |
| tree | 91f5414631bf849e9e5f3bf46f72ea383cda6373 /scripts/check_all.sh | |
| parent | 28b6d0940497d38bc1b1829f4fb7266a54636ee6 (diff) | |
fix: Flip Y-axis to match ShaderToy coordinate convention
ShaderToy uses bottom-left origin with Y-up, but our system uses
top-left origin with Y-down. Added Y-flip in fragment shader to
correctly display ShaderToy effects.
**Changes:**
- workspaces/main/shaders/scene1.wgsl: Flip Y before coordinate conversion
- tools/shadertoy/convert_shadertoy.py: Generate Y-flip in all conversions
**Formula:**
```wgsl
let flipped = vec2<f32>(p.x, uniforms.resolution.y - p.y);
```
This ensures ShaderToy shaders display right-side up.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/check_all.sh')
0 files changed, 0 insertions, 0 deletions
