mirror of
https://github.com/libretro/slang-shaders.git
synced 2024-05-10 08:44:30 -04:00
Update fake-crt-geom-potato.slang (#563)
This commit is contained in:
parent
d367f6cf73
commit
1c0a4ccbd2
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue