From 52f16636420d2e2008c613cb1648f8c9a45708a9 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Fri, 17 Oct 2014 16:52:28 +0100 Subject: [PATCH] Fixed the Filter mouse uniform value population. --- README.md | 1 + src/core/Filter.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ebe428ca5..e10552bec 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,7 @@ Version 2.1.3 - "Ravinda" - in development ### Bug Fixes * Fixed a reference error to the Loader.baseURL in Cache._resolveUrl method (thanks @neurofuzzy #1235) +* Fixed the Filter mouse uniform value population. For details about changes made in previous versions of Phaser see the full Change Log at https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md diff --git a/src/core/Filter.js b/src/core/Filter.js index 6aba84aef..477178c92 100644 --- a/src/core/Filter.js +++ b/src/core/Filter.js @@ -125,12 +125,12 @@ Phaser.Filter.prototype = { { if (pointer.x > 0) { - this.uniforms.mouse.x = pointer.x.toFixed(2); + this.uniforms.mouse.value.x = pointer.x.toFixed(2); } if (pointer.y > 0) { - this.uniforms.mouse.y = pointer.y.toFixed(2); + this.uniforms.mouse.value.y = pointer.y.toFixed(2); } }