Fixed the Filter mouse uniform value population.

This commit is contained in:
photonstorm 2014-10-17 16:52:28 +01:00
parent 4f1ba99120
commit 52f1663642
2 changed files with 3 additions and 2 deletions

View file

@ -99,6 +99,7 @@ Version 2.1.3 - "Ravinda" - in development
### Bug Fixes ### Bug Fixes
* Fixed a reference error to the Loader.baseURL in Cache._resolveUrl method (thanks @neurofuzzy #1235) * 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 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

View file

@ -125,12 +125,12 @@ Phaser.Filter.prototype = {
{ {
if (pointer.x > 0) 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) if (pointer.y > 0)
{ {
this.uniforms.mouse.y = pointer.y.toFixed(2); this.uniforms.mouse.value.y = pointer.y.toFixed(2);
} }
} }