Fixed the resolution uniform type in the SampleFilter (thanks @VictoryRice #1137)

This commit is contained in:
photonstorm 2014-08-28 02:20:49 +01:00
parent d7f8950758
commit 42c810b43f
2 changed files with 3 additions and 2 deletions

View file

@ -109,6 +109,7 @@ Version 2.1.0 - "Cairhien" - -in development-
* Fixed Group.removeBetweens default endIndex (thanks @darfux #1142)
* Debug.cameraInfo no longer crashes if the camera bounds are nulled (thanks @wayfu #1143)
* Camera.setBoundsToWorld no longer crashes if the camera bounds are nulled (thanks @wayfu #1143)
* Fixed the resolution uniform type in the SampleFilter (thanks @VictoryRice #1137)
### p2.js 0.6.0 Changes and New Features

View file

@ -9,7 +9,7 @@ Phaser.Filter.SampleFilter = function (game) {
* By default the following uniforms are already created and available:
*
* uniform float time - The current number of elapsed milliseconds in the game.
* uniform vec3 resolution - The dimensions of the filter. Can be set via setSize(width, height)
* uniform vec2 resolution - The dimensions of the filter. Can be set via setSize(width, height)
* uniform vec4 mouse - The mouse / touch coordinates taken from the pointer given to the update function, if any.
* uniform sampler2D uSampler - The current texture (usually the texture of the Sprite the shader is bound to)
*
@ -26,7 +26,7 @@ Phaser.Filter.SampleFilter = function (game) {
this.fragmentSrc = [
"precision mediump float;",
"uniform vec3 resolution;",
"uniform vec2 resolution;",
"uniform float time;",
"uniform float divisor;",