diff --git a/src/filters/invert/InvertFilter.js b/src/filters/invert/InvertFilter.js index 69b8321..7ac47bf 100644 --- a/src/filters/invert/InvertFilter.js +++ b/src/filters/invert/InvertFilter.js @@ -1,4 +1,4 @@ -var AbstractFilter = require('./AbstractFilter'); +var core = require('../../core'); /** * This inverts your Display Objects colors. @@ -9,7 +9,7 @@ */ function InvertFilter() { - AbstractFilter.call(this, + core.AbstractFilter.call(this, // vertex shader null, // fragment shader @@ -21,7 +21,7 @@ ); } -InvertFilter.prototype = Object.create(AbstractFilter.prototype); +InvertFilter.prototype = Object.create(core.AbstractFilter.prototype); InvertFilter.prototype.constructor = InvertFilter; module.exports = InvertFilter; diff --git a/src/filters/invert/InvertFilter.js b/src/filters/invert/InvertFilter.js index 69b8321..7ac47bf 100644 --- a/src/filters/invert/InvertFilter.js +++ b/src/filters/invert/InvertFilter.js @@ -1,4 +1,4 @@ -var AbstractFilter = require('./AbstractFilter'); +var core = require('../../core'); /** * This inverts your Display Objects colors. @@ -9,7 +9,7 @@ */ function InvertFilter() { - AbstractFilter.call(this, + core.AbstractFilter.call(this, // vertex shader null, // fragment shader @@ -21,7 +21,7 @@ ); } -InvertFilter.prototype = Object.create(AbstractFilter.prototype); +InvertFilter.prototype = Object.create(core.AbstractFilter.prototype); InvertFilter.prototype.constructor = InvertFilter; module.exports = InvertFilter; diff --git a/src/filters/pixelate/PixelateFilter.js b/src/filters/pixelate/PixelateFilter.js index 3b36cdd..69c85f2 100644 --- a/src/filters/pixelate/PixelateFilter.js +++ b/src/filters/pixelate/PixelateFilter.js @@ -1,4 +1,4 @@ -var AbstractFilter = require('./AbstractFilter'); +var core = require('../../core'); /** * This filter applies a pixelate effect making display objects appear 'blocky'. @@ -9,11 +9,11 @@ */ function PixelateFilter() { - AbstractFilter.call(this, + core.AbstractFilter.call(this, // vertex shader null, // fragment shader - require('fs').readFileSync(__dirname + '/invert.frag', 'utf8'), + require('fs').readFileSync(__dirname + '/pixelate.frag', 'utf8'), // custom uniforms { dimensions: { type: '4fv', value: new Float32Array([0, 0, 0, 0]) }, @@ -22,13 +22,14 @@ ); } -PixelateFilter.prototype = Object.create(AbstractFilter.prototype); +PixelateFilter.prototype = Object.create(core.AbstractFilter.prototype); PixelateFilter.prototype.constructor = PixelateFilter; module.exports = PixelateFilter; Object.defineProperties(PixelateFilter.prototype, { /** - * This a point that describes the size of the blocks. x is the width of the block and y is the height. + * This a point that describes the size of the blocks. + * x is the width of the block and y is the height. * * @member {Point} * @memberof PixelateFilter#