mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-26 01:11:32 +11:00
Merge pull request #422 from metallic77/shaders_slang
Update ossc.slang
This commit is contained in:
commit
c2d410d9da
|
@ -104,7 +104,7 @@ float scanline4(float y, float lm)
|
||||||
float scanline3(float y, float lm)
|
float scanline3(float y, float lm)
|
||||||
{
|
{
|
||||||
float l = 1.0/LINES;
|
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);
|
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 if (m<2.0*l) return 1.0-L2*(1.0-lm*HYBRID);
|
||||||
else return 1.0-L3*(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);}
|
else if (LINES == 2.0){res *= scanline2(OGL2Pos.y,lum);}
|
||||||
|
|
||||||
FragColor = vec4(res,1.0);
|
FragColor = vec4(res,1.0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue