From dd187445972989dc44428e8cf185964da9e5c0c4 Mon Sep 17 00:00:00 2001 From: vimene Date: Sun, 28 Dec 2025 17:34:59 +0100 Subject: added depth buffer --- src/shaders/shader.slang | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shaders') diff --git a/src/shaders/shader.slang b/src/shaders/shader.slang index 6bf9ca7..1f055c1 100644 --- a/src/shaders/shader.slang +++ b/src/shaders/shader.slang @@ -1,5 +1,5 @@ struct VertexInput { - float2 pos; + float3 pos; float3 col; float2 uv; }; @@ -20,7 +20,7 @@ struct VertexOutput { VertexOutput vert_main(VertexInput vi) { VertexOutput vo; // vo.pos = float4(vi.pos, 0., 1.); - vo.pos = mul(ubo.proj, mul(ubo.view, mul(ubo.model, float4(vi.pos, 0., 1.)))); + vo.pos = mul(ubo.proj, mul(ubo.view, mul(ubo.model, float4(vi.pos, 1.)))); vo.col = vi.col; vo.uv = vi.uv; return vo; -- cgit v1.2.3