comment fix

This commit is contained in:
drummyfish 2017-05-15 20:42:38 +02:00 committed by endrift
parent 2fff4eac67
commit 3851a8230b
1 changed files with 2 additions and 2 deletions

View File

@ -130,9 +130,9 @@ vec4 interpolate_diagonal(vec4 a, vec4 b, vec4 c, vec4 d)
else if (cd) // horizontal line 2? else if (cd) // horizontal line 2?
return straight_line(c,d,a,b); return straight_line(c,d,a,b);
else if (ac) // horizontal line 3? else if (ac) // vertical line 1?
return straight_line(a,c,b,d); return straight_line(a,c,b,d);
else if (bd) // horizontal line 4? else if (bd) // vertical line 2?
return straight_line(b,d,a,c); return straight_line(b,d,a,c);
return( mix(mix(a,b,0.5), mix(c,d,0.5), 0.5) ); return( mix(mix(a,b,0.5), mix(c,d,0.5), 0.5) );