mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 15:34:36 +00:00
0b1eff8b0d
https://github.com/aras-p/ToyPathTracer b076563906169aa2f9e6d7218ef85decf81f8f72
14 lines
250 B
HLSL
14 lines
250 B
HLSL
struct vs2ps
|
|
{
|
|
float2 uv : TEXCOORD0;
|
|
float4 pos : SV_Position;
|
|
};
|
|
|
|
vs2ps main(uint vid : SV_VertexID)
|
|
{
|
|
vs2ps o;
|
|
o.uv = float2((vid << 1) & 2, vid & 2);
|
|
o.pos = float4(o.uv * float2(2, 2) + float2(-1, -1), 0, 1);
|
|
return o;
|
|
}
|