From dbd68ff1396bf498eb97f095810b78d2bddd0011 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Mon, 13 Apr 2026 04:40:19 +0200 Subject: refactor: gpu webgl fallback and batched command encoding Made-with: Cursor --- rust/crates/gpu/src/shaders/fullscreen.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/crates/gpu/src/shaders') 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; } -- cgit v1.3.1