mirror of
https://github.com/rt64/rt64.git
synced 2024-12-29 12:31:50 +00:00
9 lines
263 B
HLSL
9 lines
263 B
HLSL
|
//
|
||
|
// 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);
|
||
|
}
|