aboutsummaryrefslogtreecommitdiff
path: root/assets/shaders/Pulse.frag.glsl
blob: b24c9bef10056d7d4acf4be63e0559d644ae91ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifdef GL_ES
precision highp float;
#endif

uniform float u_time;
uniform vec2 u_resolution;
uniform sampler2D u_tex0;

void main(void)
{
    vec2 halfres = u_resolution.xy/2.0;
    vec2 cPos = gl_FragCoord.xy;

    cPos.x -= 0.5*halfres.x*sin(u_tim