Delete blur shader in js-resj

This commit is contained in:
ZhangMenghe 2015-08-19 13:41:45 +08:00
parent 1f735b4f0e
commit e9bd14e1d7
1 changed files with 0 additions and 27 deletions

View File

@ -1,27 +0,0 @@
// Shader taken from: http://webglsamples.googlecode.com/hg/electricflower/electricflower.html
#ifdef GL_ES
precision mediump float;
#endif
varying vec4 v_fragmentColor;
varying vec2 v_texCoord;
uniform vec2 blurSize;
uniform vec4 substract;
void main() {
vec4 sum = vec4(0.0);
sum += texture2D(CC_Texture0, v_texCoord - 4.0 * blurSize) * 0.05;
sum += texture2D(CC_Texture0, v_texCoord - 3.0 * blurSize) * 0.09;
sum += texture2D(CC_Texture0, v_texCoord - 2.0 * blurSize) * 0.12;
sum += texture2D(CC_Texture0, v_texCoord - 1.0 * blurSize) * 0.15;
sum += texture2D(CC_Texture0, v_texCoord ) * 0.16;
sum += texture2D(CC_Texture0, v_texCoord + 1.0 * blurSize) * 0.15;
sum += texture2D(CC_Texture0, v_texCoord + 2.0 * blurSize) * 0.12;
sum += texture2D(CC_Texture0, v_texCoord + 3.0 * blurSize) * 0.09;
sum += texture2D(CC_Texture0, v_texCoord + 4.0 * blurSize) * 0.05;
gl_FragColor = (sum - substract) * v_fragmentColor;
}