mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2024-12-28 15:20:30 +00:00
11 lines
295 B
HLSL
11 lines
295 B
HLSL
|
void VSMain(
|
||
|
in uint vert_id : SV_VertexID,
|
||
|
out float4 pos : SV_Position
|
||
|
)
|
||
|
{
|
||
|
const float2 translation = 0.1f;
|
||
|
const float2 size = 0.1f;
|
||
|
float2 extent = float2(vert_id & 1 ? 1.0f : 0.0f, vert_id & 2 ? 1.0f : 0.0f);
|
||
|
pos = float4(extent * size + translation, 1.0f, 1.0f);
|
||
|
}
|