no message
This commit is contained in:
parent
881cda93f3
commit
5b1ee5dc0a
|
@ -1,14 +1,12 @@
|
||||||
//uniform sampler2D source[];
|
|
||||||
//uniform vec4 sourceSize[];
|
|
||||||
//uniform vec4 targetSize;
|
|
||||||
|
|
||||||
in vec2 texCoord;
|
in vec2 texCoord;
|
||||||
out vec4 fragColor;
|
out vec4 fragColor;
|
||||||
|
|
||||||
uniform sampler2D tex;
|
uniform sampler2D tex;
|
||||||
|
|
||||||
// Emulated input resolution.
|
// Emulated input resolution.
|
||||||
vec2 res=vec2(256.0,144.0);//sourceSize[0].xy;
|
vec2 res=vec2(256.0,144.0);
|
||||||
|
|
||||||
|
vec2 trg=res*4.0;
|
||||||
|
|
||||||
// Hardness of scanline.
|
// Hardness of scanline.
|
||||||
// -8.0 = soft
|
// -8.0 = soft
|
||||||
|
@ -116,12 +114,11 @@ vec3 Mask(vec2 pos){
|
||||||
else mask.b=maskLight;
|
else mask.b=maskLight;
|
||||||
return mask;}
|
return mask;}
|
||||||
|
|
||||||
void main() {
|
void main()
|
||||||
vec2 pos = gl_FragCoord.xy/vec2(256.0*4.0,144.0*4.0);//targetSize.xy;
|
{
|
||||||
hardScan=-12.0;
|
// maskDark=maskLight;
|
||||||
// maskDark=maskLight;
|
vec2 pos=Warp(gl_FragCoord.xy/trg);
|
||||||
pos=Warp(gl_FragCoord.xy/vec2(256.0*4.0,144.0*4.0));
|
fragColor.rgb=Tri(vec2(pos.s, 1.0 - pos.t))*Mask(gl_FragCoord.xy);
|
||||||
fragColor.rgb=Tri(pos)*Mask(gl_FragCoord.xy);
|
|
||||||
fragColor.a=1.0;
|
fragColor.a=1.0;
|
||||||
fragColor = vec4(ToSrgb(fragColor.rgb), fragColor.a);
|
fragColor = vec4(ToSrgb(fragColor.rgb), fragColor.a);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue