diff --git a/res/shaders/agb001.shader/agb001.fs b/res/shaders/agb001.shader/agb001.fs new file mode 100644 index 000000000..cb3964598 --- /dev/null +++ b/res/shaders/agb001.shader/agb001.fs @@ -0,0 +1,21 @@ +varying vec2 texCoord; +uniform sampler2D tex; + +void main() { + vec4 color = texture2D(tex, texCoord); + vec3 arrayX[4]; + arrayX[0] = vec3(1.0, 0.2, 0.2); + arrayX[1] = vec3(0.2, 1.0, 0.2); + arrayX[2] = vec3(0.2, 0.2, 1.0); + arrayX[3] = vec3(0.4, 0.4, 0.4); + vec3 arrayY[4]; + arrayY[0] = vec3(1.0, 1.0, 1.0); + arrayY[1] = vec3(1.0, 1.0, 1.0); + arrayY[2] = vec3(1.0, 1.0, 1.0); + arrayY[3] = vec3(0.8, 0.8, 0.8); + color.rgb = pow(color.rgb * vec3(0.8, 0.8, 0.8), vec3(1.8, 1.8, 1.8)) + vec3(0.16, 0.16, 0.16); + color.rgb *= arrayX[int(mod(texCoord.s * 960.0, 4.0))]; + color.rgb *= arrayY[int(mod(texCoord.t * 640.0, 4.0))]; + color.a = 0.5; + gl_FragColor = color; +} diff --git a/res/shaders/agb001.shader/manifest.ini b/res/shaders/agb001.shader/manifest.ini new file mode 100644 index 000000000..62280af9f --- /dev/null +++ b/res/shaders/agb001.shader/manifest.ini @@ -0,0 +1,11 @@ +[shader] +name=AGB-001 +author=endrift +description=A glorious recreation of the original Game Boy Advance +passes=1 + +[pass.0] +fragmentShader=agb001.fs +blend=1 +width=960 +height=640