Home | History | Annotate | Download | only in raw
      1 varying vec2 varTex0;
      2 
      3 void main() {
      4    vec2 blurCoord = varTex0;
      5    blurCoord.y = varTex0.y + UNI_blurOffset0;
      6    vec3 col = texture2D(UNI_color, blurCoord).rgb;
      7    blurCoord.y = varTex0.y + UNI_blurOffset1;
      8    col += texture2D(UNI_color, blurCoord).rgb;
      9    blurCoord.y = varTex0.y + UNI_blurOffset2;
     10    col += texture2D(UNI_color, blurCoord).rgb;
     11    blurCoord.y = varTex0.y + UNI_blurOffset3;
     12    col += texture2D(UNI_color, blurCoord).rgb;
     13 
     14    col = col * 0.25;
     15 
     16    gl_FragColor = vec4(col, 0.0);
     17 }
     18