diff --git a/data/crt.glsl b/data/crt.glsl index 32fed98..bc79422 100644 --- a/data/crt.glsl +++ b/data/crt.glsl @@ -38,8 +38,15 @@ void main() vec4 color = texture2D(Texture, uv); // Scanlines - float scanline = sin(uv.y * screenRes.y * 3.14159265) * 0.15; - color.rgb -= scanline; + //float y = sign(pix_coord.y)*floor(abs(pix_coord.y)*0.5); + //float row = mod(y,4.0); + if (row == 2.0) { + color = color * vec4(0.5, 0.5, 0.5, 1.0); + } else if (row > 0.0) { + color = color * vec4(0.8, 0.8, 0.8, 1.0); + } + //float scanline = sin(uv.y * screenRes.y * 3.14159265) * 0.15; + //color.rgb -= scanline; // Máscara de subpixels RGB sutil float pixelX = mod(uv.x * screenRes.x, 3.0); diff --git a/data/main.lua b/data/main.lua index 21a8b12..bebd534 100644 --- a/data/main.lua +++ b/data/main.lua @@ -21,7 +21,7 @@ function mini.init() pal.trans(0) rooms.init() - shader.init("lynx.glsl") + shader.init("crt.glsl") shader.enable() --titles.enable() game.enable()