Skip to content

Commit

Permalink
Update cDLAA.fx
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Sep 7, 2024
1 parent e7e1ac3 commit de1eea9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shaders/cDLAA.fx
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ static const float ContrastThresholds[5] =
1.0 / 3.0, 1.0 / 4.0, 1.0 / 6.0, 1.0 / 8.0, 1.0 / 16.0
};

#include "shared/cShade.fxh"
#include "shared/cColor.fxh"

#include "shared/cShade.fxh"
#include "shared/cBlend.fxh"

CREATE_TEXTURE_POOLED(TempTex0_RGBA8, BUFFER_SIZE_0, RGBA8, 0)
CREATE_SAMPLER(SampleTempTex0, TempTex0_RGBA8, LINEAR, MIRROR, MIRROR, MIRROR)

float GetIntensity(float3 Color)
{
return CColor_GetLuma(Color, 0);
return dot(Color, CColor_Rec709_Coefficients);
}

float4 PS_Prefilter(CShade_VS2PS_Quad Input) : SV_TARGET0
Expand Down

0 comments on commit de1eea9

Please sign in to comment.