From 1ec55ec9e5c3324f2610db023b8c89e0bdccc603 Mon Sep 17 00:00:00 2001 From: papadanku <115061077+papadanku@users.noreply.github.com> Date: Fri, 6 Sep 2024 07:13:59 -0700 Subject: [PATCH 1/3] Update cFXAA.fx --- shaders/cFXAA.fx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shaders/cFXAA.fx b/shaders/cFXAA.fx index ebe4089..334372c 100644 --- a/shaders/cFXAA.fx +++ b/shaders/cFXAA.fx @@ -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); @@ -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; } } From a4a57094360f8788c448de0d89ba248d36b67f21 Mon Sep 17 00:00:00 2001 From: papadanku <115061077+papadanku@users.noreply.github.com> Date: Fri, 6 Sep 2024 07:14:48 -0700 Subject: [PATCH 2/3] Update cDLAA.fx --- shaders/cDLAA.fx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shaders/cDLAA.fx b/shaders/cDLAA.fx index 060f408..4327723 100644 --- a/shaders/cDLAA.fx +++ b/shaders/cDLAA.fx @@ -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); @@ -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; } } From d600d296eaced2344a57d31b1b04d4a13079670b Mon Sep 17 00:00:00 2001 From: papadanku <115061077+papadanku@users.noreply.github.com> Date: Sat, 7 Sep 2024 07:18:39 -0700 Subject: [PATCH 3/3] Update cDLAA.fx --- shaders/cDLAA.fx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/cDLAA.fx b/shaders/cDLAA.fx index 4327723..63e1b2c 100644 --- a/shaders/cDLAA.fx +++ b/shaders/cDLAA.fx @@ -151,7 +151,7 @@ float4 PS_DLAA(CShade_VS2PS_Quad Input) : SV_TARGET0 float LongEdgeMaskV = saturate((LongBlurV.a * 2.0) - 1.0); [branch] - if (abs(LongEdgeMaskH - LongEdgeMaskV) > ContrastThresholds[ContrastThresholds]) + if (abs(LongEdgeMaskH - LongEdgeMaskV) > _ContrastThreshold[ContrastThresholds]) { float LongBlurLumaH = GetIntensity(LongBlurH.rgb); float LongBlurLumaV = GetIntensity(LongBlurV.rgb);