fake-CRT-Geom-potato switch to kaizer

This commit is contained in:
metallic77 2024-03-22 09:59:08 +02:00 committed by GitHub
parent ec1d31b4b3
commit d4998c001f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,14 +63,13 @@ vec2 corn = min(pos, 1.0-pos); // This is used to mask the rounded
corn.x = 0.0002/corn.x; // corners later on
float y = pos.y*SourceSize.y;
float gl2pos = floor(y) + 0.5;
float near = gl2pos*SourceSize.w;
float dy = y - gl2pos;
dy = dy*dy*dy*4.0*SourceSize.w;
vec2 p = vec2(pos.x, near+dy);
vec3 res = texture(Source,p).rgb;
vec2 dx = vec2(SourceSize.z,0.0);
// precalculated kaizer window filter
vec3 res = vec3(0.0);
res += texture(Source,pos -2.0*dx).rgb*-0.217;
res += texture(Source,pos -dx).rgb*0.2;
res += texture(Source,pos ).rgb*0.582;
res /= 0.5659;
vec3 clean = res;
float w = dot(vec3(0.15),res);