mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-22 07:41:31 +11:00
Update ossc.slang
fix mistake on 3x lines
This commit is contained in:
parent
4d12bed8bc
commit
d514e014a5
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue