mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-12-20 23:12:24 +00:00
5 lines
260 B
HLSL
5 lines
260 B
HLSL
void shaderMain(in uint vertexId : SV_VertexID, out float4 position : SV_Position, out float2 texCoord : TEXCOORD)
|
|
{
|
|
texCoord = float2((vertexId << 1) & 2, vertexId & 2);
|
|
position = float4(texCoord * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0);
|
|
}
|