Update xbr-lv2-small-details.

- Improve dithering treatment.
This commit is contained in:
Hyllian 2022-07-25 17:39:13 -03:00
parent 3dcd44534a
commit f37ed772ba
2 changed files with 5 additions and 3 deletions

View file

@ -184,7 +184,7 @@ vec4 weighted_distance(mat4x3 a, mat4x3 b, mat4x3 c, mat4x3 d, mat4x3 e, mat4x3
}
else
{
return (dist4(a,b) + dist4(a,c) + dist4(d,e) + dist4(d,f) + 4.0*dist4(g,h) - dist4(b,c) - dist4(e,f));
return ( (dist4(a,b) + dist4(a,c)) * (dist4(d,e) + dist4(d,f)) + 2.0 * dist4(g,h) * (dist4(c,e)+dist4(b,f)) * (dist4(c,b)+dist4(e,f)) );
}
}
@ -269,7 +269,7 @@ void main()
vec4 d_fg = dist4(f, g);
vec4 d_hc = dist4(h, c);
float K = (SMALL_DETAILS < 0.5 ? 1.0 : 3.0);
float K = (SMALL_DETAILS < 0.5 ? 1.0 : 1.9);
edri = LTE(wd1, wd2) * irlv0;
edr = LT( K*wd1, wd2) * irlv1 * NOT(edri.yzwx * edri.wxyz);

View file

@ -13,7 +13,9 @@ filter_linear2 = false
filter_linear0 = "false"
filter_linear1 = "false"
parameters = "SMALL_DETAILS"
parameters = "XBR_LV2_COEFFICIENT;XBR_EQ_THRESHOLD;SMALL_DETAILS"
XBR_LV2_COEFFICIENT = "0.0
XBR_EQ_THRESHOLD = "0.22"
SMALL_DETAILS = "1.0"