Update ossc.slang

fix mistake on 3x lines
This commit is contained in:
metallic77 2023-05-11 01:44:48 +03:00 committed by GitHub
parent 4d12bed8bc
commit d514e014a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,7 @@ float scanline4(float y, float lm)
float scanline3(float y, float lm)
{
float l = 1.0/LINES;
float m = fract(y*lm);
float m = fract(y*l);
if (m<l) return 1.0-L1*(1.0-lm*HYBRID);
else if (m<2.0*l) return 1.0-L2*(1.0-lm*HYBRID);
else return 1.0-L3*(1.0-lm*HYBRID);
@ -143,4 +143,4 @@ void main()
else if (LINES == 2.0){res *= scanline2(OGL2Pos.y,lum);}
FragColor = vec4(res,1.0);
}
}