Retocat el shader crt
This commit is contained in:
1 parent
38e1303451
commit
9bc70b4bb0
2 files changed
+10
-3
No files matched your search
+9
-2
@@ -38,8 +38,15 @@ void main()
|
|||||||
vec4 color = texture2D(Texture, uv);
|
vec4 color = texture2D(Texture, uv);
|
||||||
|
|
||||||
// Scanlines
|
// Scanlines
|
||||||
float scanline = sin(uv.y * screenRes.y * 3.14159265) * 0.15;
|
//float y = sign(pix_coord.y)*floor(abs(pix_coord.y)*0.5);
|
||||||
color.rgb -= scanline;
|
//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
|
// Máscara de subpixels RGB sutil
|
||||||
float pixelX = mod(uv.x * screenRes.x, 3.0);
|
float pixelX = mod(uv.x * screenRes.x, 3.0);
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ function mini.init()
|
|||||||
pal.trans(0)
|
pal.trans(0)
|
||||||
|
|
||||||
rooms.init()
|
rooms.init()
|
||||||
shader.init("lynx.glsl")
|
shader.init("crt.glsl")
|
||||||
shader.enable()
|
shader.enable()
|
||||||
--titles.enable()
|
--titles.enable()
|
||||||
game.enable()
|
game.enable()
|
||||||
|
|||||||
Reference in new issue
Block a user