1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2024-10-05 18:40:49 +01:00

Fixed fontColor conversion applied two times.

This commit is contained in:
Filippo Scognamiglio 2018-11-23 22:53:24 +01:00
parent b8e3cd5d64
commit 677ad5c54b

View File

@ -317,7 +317,7 @@ ShaderEffect {
"txt_color *= min2(step(vec2(0.0), staticCoords) - step(vec2(1.0), staticCoords));" + "txt_color *= min2(step(vec2(0.0), staticCoords) - step(vec2(1.0), staticCoords));" +
"txt_color *= getScanlineIntensity(coords);" + "txt_color *= getScanlineIntensity(coords);" +
"txt_color += fontColor.rgb * color;" + "txt_color += vec3(color);" +
"float greyscale_color = rgb2grey(txt_color);" + "float greyscale_color = rgb2grey(txt_color);" +
(chromaColor !== 0 ? (chromaColor !== 0 ?