some things work, others dont

This commit is contained in:
2025-09-27 22:29:04 +02:00
parent a2f1e0bd8c
commit 9f9663fb47
5 changed files with 11 additions and 9 deletions
+3 -1
View File
@@ -9,6 +9,8 @@ QuadOutput quadMain(uint vertexIndex : SV_VertexID)
{
QuadOutput result;
result.uv = float2(vertexIndex & 2, (vertexIndex << 1) & 2);
result.position = float4(result.uv * 2.0f + -1.0f, 0.0f, 1.0f);
float2 ndc = result.uv * 2.0f + -1.0f;
ndc.y = -ndc.y; // Flip Y for flipped viewport
result.position = float4(ndc, 0.0f, 1.0f);
return result;
}