Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/papadanku/CShade
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Sep 7, 2024
2 parents 9ec0050 + d600d29 commit e7e1ac3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions shaders/cDLAA.fx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ float4 PS_Prefilter(CShade_VS2PS_Quad Input) : SV_TARGET0
return float4(Center, EdgesLuma);
}

float4 PS_AntiAliasing(CShade_VS2PS_Quad Input) : SV_TARGET0
float4 PS_DLAA(CShade_VS2PS_Quad Input) : SV_TARGET0
{
float2 Delta = fwidth(Input.Tex0);

Expand Down Expand Up @@ -210,11 +210,11 @@ technique CShade_DLAA < ui_tooltip = "Directionally Localized Anti-Aliasing (DLA
RenderTarget0 = TempTex0_RGBA8;
}

pass AntiAliasing
pass DLAA
{
CBLEND_CREATE_STATES()

VertexShader = CShade_VS_Quad;
PixelShader = PS_AntiAliasing;
PixelShader = PS_DLAA;
}
}
6 changes: 3 additions & 3 deletions shaders/cFXAA.fx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ float GetEdgeBlendFactor(LumaNeighborhood LN, LumaDiagonals LD, Edge E, float2 T
}
}

float4 PS_AntiAliasing(CShade_VS2PS_Quad Input) : SV_TARGET0
float4 PS_FXAA(CShade_VS2PS_Quad Input) : SV_TARGET0
{
float2 Delta = fwidth(Input.Tex0);
LumaNeighborhood LN = GetLumaNeighborhood(Input.Tex0, Delta);
Expand Down Expand Up @@ -294,11 +294,11 @@ float4 PS_AntiAliasing(CShade_VS2PS_Quad Input) : SV_TARGET0

technique CShade_FXAA < ui_tooltip = "Fast Approximate Anti-Aliasing (FXAA)"; >
{
pass AntiAliasing
pass FXAA
{
CBLEND_CREATE_STATES()

VertexShader = CShade_VS_Quad;
PixelShader = PS_AntiAliasing;
PixelShader = PS_FXAA;
}
}

0 comments on commit e7e1ac3

Please sign in to comment.