mirror of
https://github.com/italicsjenga/slang-shaders.git
synced 2024-11-26 01:11:32 +11:00
fix scanlines misalignment/excessive moire (#396)
* integrate NTSC-colors * Integrate NTSC-colors * Integrate NTSC-colors, some fixes too * additions Added hue shift from grade, improved glow, added scanlines downscale to interlace mode. Some other touches too * Update crt-consumer.slang * fix scanlines misalignment
This commit is contained in:
parent
396a2ed753
commit
91eb05f136
|
@ -542,7 +542,7 @@ void main()
|
||||||
|
|
||||||
float lum = color.r * 0.3 + color.g * 0.6 + color.b * 0.1;
|
float lum = color.r * 0.3 + color.g * 0.6 + color.b * 0.1;
|
||||||
|
|
||||||
float f = center_dist.y+0.5; //fix excessive moire
|
float f = fract(fp.y -0.5);
|
||||||
|
|
||||||
if (global.inter > 0.5 && tex_size.y > 400.0) color = color;
|
if (global.inter > 0.5 && tex_size.y > 400.0) color = color;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue