Skip to content

Commit 1661cdd

Browse files
committed
Fixed the 4fv uniform in the Pixelate filter.
1 parent 506a091 commit 1661cdd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

filters/Pixelate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Phaser.Filter.Pixelate = function(game) {
1616

1717
this.uniforms.invert = { type: '1f', value: 0 };
1818
this.uniforms.pixelSize = { type: '2f', value: { x: 10, y: 10 } };
19-
this.uniforms.dimensions = { type: '4fv', value: new Float32Array( [ 10000, 100, 10, 10 ] ) };
19+
this.uniforms.dimensions = { type: '4fv', value: { x: 10000, y: 100, z: 10, w: 10 } };
2020

2121
this.fragmentSrc = [
2222

0 commit comments

Comments
 (0)