diff --git a/src/core/textures/Texture.js b/src/core/textures/Texture.js index c6a4433..0ff4057 100644 --- a/src/core/textures/Texture.js +++ b/src/core/textures/Texture.js @@ -493,3 +493,7 @@ */ Texture.EMPTY = new Texture(new BaseTexture()); Texture.EMPTY.destroy = function() {} +Texture.EMPTY.on = function() {}; +Texture.EMPTY.once = function() {}; +Texture.EMPTY.emit = function() {}; + diff --git a/src/core/textures/Texture.js b/src/core/textures/Texture.js index c6a4433..0ff4057 100644 --- a/src/core/textures/Texture.js +++ b/src/core/textures/Texture.js @@ -493,3 +493,7 @@ */ Texture.EMPTY = new Texture(new BaseTexture()); Texture.EMPTY.destroy = function() {} +Texture.EMPTY.on = function() {}; +Texture.EMPTY.once = function() {}; +Texture.EMPTY.emit = function() {}; + diff --git a/src/filters/blur/generateBlurVertSource.js b/src/filters/blur/generateBlurVertSource.js index 9238ae0..ced96b6 100644 --- a/src/filters/blur/generateBlurVertSource.js +++ b/src/filters/blur/generateBlurVertSource.js @@ -27,11 +27,11 @@ if(x) { - template = 'vBlurTexCoords[%index%] = aTextureCoord + vec2(%samlpeIndex% * strength, 0.0);'; + template = 'vBlurTexCoords[%index%] = aTextureCoord + vec2(%sampleIndex% * strength, 0.0);'; } else { - template = 'vBlurTexCoords[%index%] = aTextureCoord + vec2(0.0, %samlpeIndex% * strength);'; + template = 'vBlurTexCoords[%index%] = aTextureCoord + vec2(0.0, %sampleIndex% * strength);'; } @@ -47,7 +47,7 @@ value = kernelSize - i - 1; } - blur = blur.replace('%samlpeIndex%', (i - (halfLength-1)) + '.0'); + blur = blur.replace('%sampleIndex%', (i - (halfLength-1)) + '.0'); blurLoop += blur; blurLoop += '\n';