diff --git a/gulpfile.js b/gulpfile.js index 658a7d2..3d29ac5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -19,7 +19,7 @@ // Specify game project paths for tasks. global.paths = { src: './src', - out: './dist', + out: './bin', get scripts() { return this.src + '/**/*.js'; }, get jsEntry() { return this.src + '/index'; } diff --git a/gulpfile.js b/gulpfile.js index 658a7d2..3d29ac5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -19,7 +19,7 @@ // Specify game project paths for tasks. global.paths = { src: './src', - out: './dist', + out: './bin', get scripts() { return this.src + '/**/*.js'; }, get jsEntry() { return this.src + '/index'; } diff --git a/src/core/renderers/webgl/managers/FilterManager.js b/src/core/renderers/webgl/managers/FilterManager.js index 3da522c..2103d3b 100644 --- a/src/core/renderers/webgl/managers/FilterManager.js +++ b/src/core/renderers/webgl/managers/FilterManager.js @@ -74,6 +74,12 @@ // get the bounds of the object.. var bounds = target.filterArea || target.getBounds(); + // round off the rectangle to get a nice smoooooooth filter :) + bounds.x = bounds.x | 0; + bounds.y = bounds.y | 0; + bounds.width = bounds.width | 0; + bounds.height = bounds.height | 0; + this.capFilterArea( bounds ); this.currentFrame = bounds; @@ -155,7 +161,11 @@ { var renderTarget = this.texturePool.pop() || new RenderTarget(this.renderer.gl, this.textureSize.width, this.textureSize.height); renderTarget.frame = this.currentFrame; - if(clear)renderTarget.clear(); + + if(clear) + { + renderTarget.clear(); + } return renderTarget; };