mirror of https://github.com/axmolengine/axmol.git
Merge pull request #13463 from ZhangMenghe/v3.8-materialSys
[ci skip] Delete blur shader in js-resj
This commit is contained in:
commit
08fcf7e35b
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue