diff options
Diffstat (limited to 'src/shaders')
| -rw-r--r-- | src/shaders/shader.slang | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
