mirror of
https://github.com/libretro/slang-shaders.git
synced 2024-06-02 19:38:36 -04:00
fake-CRT-Geom-potato switch to kaizer
This commit is contained in:
parent
ec1d31b4b3
commit
d4998c001f
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue