Skip to content

Commit de1eea9

Browse files
committed
Update cDLAA.fx
1 parent e7e1ac3 commit de1eea9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

shaders/cDLAA.fx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@ static const float ContrastThresholds[5] =
2525
1.0 / 3.0, 1.0 / 4.0, 1.0 / 6.0, 1.0 / 8.0, 1.0 / 16.0
2626
};
2727

28-
#include "shared/cShade.fxh"
2928
#include "shared/cColor.fxh"
29+
30+
#include "shared/cShade.fxh"
3031
#include "shared/cBlend.fxh"
3132

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

3536
float GetIntensity(float3 Color)
3637
{
37-
return CColor_GetLuma(Color, 0);
38+
return dot(Color, CColor_Rec709_Coefficients);
3839
}
3940

4041
float4 PS_Prefilter(CShade_VS2PS_Quad Input) : SV_TARGET0

0 commit comments

Comments
 (0)