Skip to content

Commit

Permalink
Update ReShade.fxh
Browse files Browse the repository at this point in the history
brimson authored Apr 16, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f7840c2 commit a163baa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions shaders/ReShade.fxh
Original file line number Diff line number Diff line change
@@ -116,3 +116,11 @@ namespace ReShade
return depth;
}
}

// Vertex shader generating a triangle covering the entire screen
void PostProcessVS(in uint id : SV_VERTEXID, out float4 position : SV_POSITION, out float2 texcoord : TEXCOORD0)
{
texcoord.x = (id == 2) ? 2.0 : 0.0;
texcoord.y = (id == 1) ? 2.0 : 0.0;
position = float4(texcoord * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0);
}

0 comments on commit a163baa

Please sign in to comment.