From 9ce8a5608773e99868289264e86b436c17448cd2 Mon Sep 17 00:00:00 2001 From: Elie Michel Date: Tue, 12 Nov 2024 22:47:21 +0100 Subject: [PATCH] Fix whitespaces in shader --- resources/shader.wgsl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/shader.wgsl b/resources/shader.wgsl index cc115ea..af42f4a 100644 --- a/resources/shader.wgsl +++ b/resources/shader.wgsl @@ -26,16 +26,16 @@ struct VertexOutput { @vertex fn vs_main(in: VertexInput) -> VertexOutput { - var out: VertexOutput; - let ratio = 640.0 / 480.0; + var out: VertexOutput; + let ratio = 640.0 / 480.0; - // We now move the scene depending on the time! - var offset = vec2f(-0.6875, -0.463); - offset += 0.3 * vec2f(cos(uTime), sin(uTime)); + // We now move the scene depending on the time! + var offset = vec2f(-0.6875, -0.463); + offset += 0.3 * vec2f(cos(uTime), sin(uTime)); - out.position = vec4f(in.position.x + offset.x, (in.position.y + offset.y) * ratio, 0.0, 1.0); - out.color = in.color; - return out; + out.position = vec4f(in.position.x + offset.x, (in.position.y + offset.y) * ratio, 0.0, 1.0); + out.color = in.color; + return out; } @fragment