More math adjustments to shaders + new shader

This commit is contained in:
CamilleLaVey
2026-09-08 04:18:37 -04:00
parent 690c1e9e12
commit 5cebeabe03
22 changed files with 120 additions and 214 deletions
+1 -9
View File
@@ -32,15 +32,7 @@ uniform float Tint <
void VS_PostProcess(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD)
{
uv = float2(0.0, 0.0);
if (id == 2)
{
uv.x = 2.0;
}
if (id == 1)
{
uv.y = 2.0;
}
uv = float2(float(id & 2), float((id & 1) << 1));
pos = float4(uv * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0);
}