Merge pull request #422 from metallic77/shaders_slang

Update ossc.slang
This commit is contained in:
hizzlekizzle 2023-05-10 22:37:58 -05:00 committed by GitHub
commit c2d410d9da
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);
}
}