diff --git a/src/core/renderers/webgl/WebGLRenderer.js b/src/core/renderers/webgl/WebGLRenderer.js index 38452c9..6c1fb7d 100644 --- a/src/core/renderers/webgl/WebGLRenderer.js +++ b/src/core/renderers/webgl/WebGLRenderer.js @@ -164,15 +164,6 @@ preserveDrawingBuffer: options.preserveDrawingBuffer }; - /** - * @member {Point} - */ - this.projection = new math.Point(); - - /** - * @member {Point} - */ - this.offset = new math.Point(0, 0); /** * Counter for the number of draws made each frame @@ -377,11 +368,8 @@ // reset the render session data.. this.drawCount = 0; - // make sure to flip the Y if using a render texture.. -// this.flipY = renderTarget.frameBuffer ? -1 : 1; - // start the filter manager - this.filterManager.begin(renderTarget.frameBuffer); + // this.filterManager.begin(renderTarget.frameBuffer); // render the scene! displayObject.renderWebGL(this); @@ -426,9 +414,6 @@ this.gl.viewport(0, 0, this.width, this.height); this.renderTarget.resize(width, height); - - this.projection.x = this.width / 2 / this.resolution; - this.projection.y = -this.height / 2 / this.resolution; }; /** @@ -581,8 +566,6 @@ this._contextOptions = null; - this.projection = null; - this.offset = null; this.drawCount = 0; this.shaderManager = null; diff --git a/src/core/renderers/webgl/WebGLRenderer.js b/src/core/renderers/webgl/WebGLRenderer.js index 38452c9..6c1fb7d 100644 --- a/src/core/renderers/webgl/WebGLRenderer.js +++ b/src/core/renderers/webgl/WebGLRenderer.js @@ -164,15 +164,6 @@ preserveDrawingBuffer: options.preserveDrawingBuffer }; - /** - * @member {Point} - */ - this.projection = new math.Point(); - - /** - * @member {Point} - */ - this.offset = new math.Point(0, 0); /** * Counter for the number of draws made each frame @@ -377,11 +368,8 @@ // reset the render session data.. this.drawCount = 0; - // make sure to flip the Y if using a render texture.. -// this.flipY = renderTarget.frameBuffer ? -1 : 1; - // start the filter manager - this.filterManager.begin(renderTarget.frameBuffer); + // this.filterManager.begin(renderTarget.frameBuffer); // render the scene! displayObject.renderWebGL(this); @@ -426,9 +414,6 @@ this.gl.viewport(0, 0, this.width, this.height); this.renderTarget.resize(width, height); - - this.projection.x = this.width / 2 / this.resolution; - this.projection.y = -this.height / 2 / this.resolution; }; /** @@ -581,8 +566,6 @@ this._contextOptions = null; - this.projection = null; - this.offset = null; this.drawCount = 0; this.shaderManager = null; diff --git a/src/core/renderers/webgl/utils/RenderTarget.js b/src/core/renderers/webgl/utils/RenderTarget.js index 0896b88..a537fe4 100644 --- a/src/core/renderers/webgl/utils/RenderTarget.js +++ b/src/core/renderers/webgl/utils/RenderTarget.js @@ -42,8 +42,6 @@ this.projectionMatrix = new math.Matrix(); - - /** * @property scaleMode * @type Number diff --git a/src/core/renderers/webgl/WebGLRenderer.js b/src/core/renderers/webgl/WebGLRenderer.js index 38452c9..6c1fb7d 100644 --- a/src/core/renderers/webgl/WebGLRenderer.js +++ b/src/core/renderers/webgl/WebGLRenderer.js @@ -164,15 +164,6 @@ preserveDrawingBuffer: options.preserveDrawingBuffer }; - /** - * @member {Point} - */ - this.projection = new math.Point(); - - /** - * @member {Point} - */ - this.offset = new math.Point(0, 0); /** * Counter for the number of draws made each frame @@ -377,11 +368,8 @@ // reset the render session data.. this.drawCount = 0; - // make sure to flip the Y if using a render texture.. -// this.flipY = renderTarget.frameBuffer ? -1 : 1; - // start the filter manager - this.filterManager.begin(renderTarget.frameBuffer); + // this.filterManager.begin(renderTarget.frameBuffer); // render the scene! displayObject.renderWebGL(this); @@ -426,9 +414,6 @@ this.gl.viewport(0, 0, this.width, this.height); this.renderTarget.resize(width, height); - - this.projection.x = this.width / 2 / this.resolution; - this.projection.y = -this.height / 2 / this.resolution; }; /** @@ -581,8 +566,6 @@ this._contextOptions = null; - this.projection = null; - this.offset = null; this.drawCount = 0; this.shaderManager = null; diff --git a/src/core/renderers/webgl/utils/RenderTarget.js b/src/core/renderers/webgl/utils/RenderTarget.js index 0896b88..a537fe4 100644 --- a/src/core/renderers/webgl/utils/RenderTarget.js +++ b/src/core/renderers/webgl/utils/RenderTarget.js @@ -42,8 +42,6 @@ this.projectionMatrix = new math.Matrix(); - - /** * @property scaleMode * @type Number diff --git a/src/index.js b/src/index.js index 83eb4b0..f864027 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,7 @@ // plugins: core.extras = require('./extras'); -//core.filters = require('./filters'); +core.filters = require('./filters'); core.interaction = require('./interaction'); core.loaders = require('./loaders'); core.spine = require('./spine');