mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
Fixed the Filter mouse uniform value population.
This commit is contained in:
parent
4f1ba99120
commit
52f1663642
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue