Update fake-crt-geom-potato.slang (#563)

This commit is contained in:
metallic77 2024-03-24 17:42:43 +02:00 committed by GitHub
parent d367f6cf73
commit 1c0a4ccbd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,11 +64,13 @@ vec2 corn = min(pos, 1.0-pos); // This is used to mask the rounded
float y = pos.y*SourceSize.y;
vec2 dx = vec2(SourceSize.z*0.75,0.0);
vec2 dy = vec2(0.0,SourceSize.w*0.5);
// precalculated kaizer window filter
vec3 res = vec3(0.0);
res += texture(Source,pos -dx).rgb*-0.1082;
res += texture(Source,pos ).rgb*0.5155;
res /= 0.4073;
res += texture(Source,pos -dx).rgb*-0.26565;
res += texture(Source,pos -dy).rgb*-0.26565;
res += texture(Source,pos ).rgb*1.5313;
vec3 clean = res;