diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-04-13 04:40:19 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-04-13 05:01:51 +0200 |
| commit | dbd68ff1396bf498eb97f095810b78d2bddd0011 (patch) | |
| tree | f1d555425899ff1ecb969a94dc1ea5d9b84868f7 /rust/crates/gpu/src/shaders/fullscreen.wgsl | |
| parent | 0d0d7375635733435922a697d91601206cc38b68 (diff) | |
| download | opencut-dbd68ff1396bf498eb97f095810b78d2bddd0011.tar.gz | |
refactor: gpu webgl fallback and batched command encoding
Made-with: Cursor
Diffstat (limited to 'rust/crates/gpu/src/shaders/fullscreen.wgsl')
| -rw-r--r-- | rust/crates/gpu/src/shaders/fullscreen.wgsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/crates/gpu/src/shaders/fullscreen.wgsl b/rust/crates/gpu/src/shaders/fullscreen.wgsl index 1ef26e48..dce878e4 100644 --- a/rust/crates/gpu/src/shaders/fullscreen.wgsl +++ b/rust/crates/gpu/src/shaders/fullscreen.wgsl @@ -7,6 +7,6 @@ struct VertexOutput { fn vertex_main(@location(0) position: vec2f) -> VertexOutput { var output: VertexOutput; output.position = vec4f(position, 0.0, 1.0); - output.tex_coord = (position * 0.5) + vec2f(0.5, 0.5); + output.tex_coord = vec2f(position.x * 0.5 + 0.5, 0.5 - position.y * 0.5); return output; } |
