2015-11-02 02:43:01 +00:00
|
|
|
varying vec2 texCoord;
|
|
|
|
uniform sampler2D tex;
|
2016-05-26 04:25:09 +00:00
|
|
|
uniform vec2 texSize;
|
2015-11-02 02:43:01 +00:00
|
|
|
|
|
|
|
void main() {
|
|
|
|
vec4 color = texture2D(tex, texCoord);
|
2019-01-05 05:48:21 +00:00
|
|
|
vec3 arrayX[3];
|
|
|
|
arrayX[0] = vec3(0.2, 0.2, 1.0);
|
2015-11-02 02:43:01 +00:00
|
|
|
arrayX[1] = vec3(0.2, 1.0, 0.2);
|
2019-01-05 05:48:21 +00:00
|
|
|
arrayX[2] = vec3(1.0, 0.2, 0.2);
|
2015-11-02 02:43:01 +00:00
|
|
|
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);
|
2015-11-08 23:29:52 +00:00
|
|
|
arrayY[3] = vec3(0.9, 0.9, 0.9);
|
|
|
|
color.rgb = pow(color.rgb, vec3(1.6, 1.6, 1.6));
|
2019-01-05 05:48:21 +00:00
|
|
|
color.rgb *= arrayX[int(mod(texCoord.s * texSize.x * 3.0, 3.0))];
|
2016-05-26 04:25:09 +00:00
|
|
|
color.rgb *= arrayY[int(mod(texCoord.t * texSize.y * 4.0, 4.0))];
|
2015-11-08 23:29:52 +00:00
|
|
|
color.a = 0.8;
|
2015-11-02 02:43:01 +00:00
|
|
|
gl_FragColor = color;
|
|
|
|
}
|