rt64/examples/shaders/RenderInterfaceTestPostVS.hlsl

9 lines
263 B
HLSL
Raw Normal View History

//
// RT64
//
void VSMain(in uint id : SV_VertexID, out float4 pos : SV_Position, out float2 uv : TEXCOORD0) {
uv.x = (id == 2) ? 2.0f : 0.0f;
uv.y = (id == 1) ? 2.0f : 0.0f;
pos = float4(uv * float2(2.0f, -2.0f) + float2(-1.0f, 1.0f), 1.0f, 1.0f);
}