Merge pull request #194 from jntesteves/feature/smaa-fix

SMAA: Fix color edge detection
This commit is contained in:
hizzlekizzle 2021-09-14 22:41:17 -05:00 committed by GitHub
commit e3a942c688
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -792,11 +792,11 @@ float2 SMAAColorEdgeDetectionPS(float2 texcoord,
// Calculate left-left and top-top deltas:
float3 Cleftleft = SMAASamplePoint(colorTex, offset[2].xy).rgb;
t = abs(C - Cleftleft);
t = abs(Cleft - Cleftleft);
delta.z = max(max(t.r, t.g), t.b);
float3 Ctoptop = SMAASamplePoint(colorTex, offset[2].zw).rgb;
t = abs(C - Ctoptop);
t = abs(Ctop - Ctoptop);
delta.w = max(max(t.r, t.g), t.b);
// Calculate the final maximum delta: