Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SMAA.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down