Merge pull request #266 from Hyllian/master

Update xbr-lv2-small-details.
This commit is contained in:
hizzlekizzle 2022-07-25 16:43:25 -05:00 committed by GitHub
commit 6dbbc14615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"