From ba10663a9ffe5ec334e037c7e2eda3f5d2f99d58 Mon Sep 17 00:00:00 2001 From: FreddyFunk <27208977+FreddyFunk@users.noreply.github.com> Date: Tue, 16 Jan 2024 20:32:12 +0100 Subject: [PATCH] fix orientation of slice renderer --- src/apps/slice_renderer_shader.wgsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/slice_renderer_shader.wgsl b/src/apps/slice_renderer_shader.wgsl index d61fafb..69f09f4 100644 --- a/src/apps/slice_renderer_shader.wgsl +++ b/src/apps/slice_renderer_shader.wgsl @@ -18,7 +18,7 @@ fn vs_main( model: VertexInput, ) -> VertexOutput { var out: VertexOutput; - out.tex_coords = 0.5 * vec2(model.position.x, model.position.y) + 0.5; + out.tex_coords = model.tex_coords; out.clip_position = vec4(scale_factor * model.position, 1.0); return out; }