Skip to content

Commit 61f18b6

Browse files
author
Christian Wesselhoeft
committed
Trim trailing whitespace.
1 parent 12c5a1b commit 61f18b6

142 files changed

Lines changed: 1396 additions & 1396 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

filters/BinarySerpents.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Phaser.Filter.BinarySerpents = function (game) {
99
this.uniforms.march = { type: '1i', value: 100 };
1010
this.uniforms.maxDistance = { type: '1f', value: 5.0 };
1111
this.uniforms.fog = { type: '1f', value: 5.0 };
12-
12+
1313
this.fragmentSrc = [
1414

1515
"precision mediump float;",
@@ -65,7 +65,7 @@ Phaser.Filter.BinarySerpents = function (game) {
6565
"float r = Texture3D(ray, 33.);",
6666
"gl_FragColor = result * (step(r, .3) + r * .2 + .1);",
6767
"}"
68-
];
68+
];
6969

7070
};
7171

filters/BlurX.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Phaser.Filter.BlurX = function (game) {
66
Phaser.Filter.call(this, game);
77

88
this.uniforms.blur = { type: '1f', value: 1 / 512 };
9-
9+
1010
this.fragmentSrc = [
1111

1212
"precision mediump float;",
@@ -27,7 +27,7 @@ Phaser.Filter.BlurX = function (game) {
2727
"sum += texture2D(uSampler, vec2(vTextureCoord.x + 2.0*blur, vTextureCoord.y)) * 0.12;",
2828
"sum += texture2D(uSampler, vec2(vTextureCoord.x + 3.0*blur, vTextureCoord.y)) * 0.09;",
2929
"sum += texture2D(uSampler, vec2(vTextureCoord.x + 4.0*blur, vTextureCoord.y)) * 0.05;",
30-
30+
3131
"gl_FragColor = sum;",
3232

3333
"}"

filters/BlurY.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Phaser.Filter.BlurY = function (game) {
66
Phaser.Filter.call(this, game);
77

88
this.uniforms.blur = { type: '1f', value: 1 / 512 };
9-
9+
1010
this.fragmentSrc = [
1111

1212
"precision mediump float;",
@@ -27,7 +27,7 @@ Phaser.Filter.BlurY = function (game) {
2727
"sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + 2.0*blur)) * 0.12;",
2828
"sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + 3.0*blur)) * 0.09;",
2929
"sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + 4.0*blur)) * 0.05;",
30-
30+
3131
"gl_FragColor = sum;",
3232

3333
"}"

filters/CheckerWave.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Phaser.Filter.CheckerWave = function (game) {
1010
this.uniforms.vrp = { type: '3f', value: { x: 0.0, y: -5.0, z: 0.0 }};
1111
this.uniforms.color1 = { type: '3f', value: { x: 0, y: 1, z: 1 }};
1212
this.uniforms.color2 = { type: '3f', value: { x: 1, y: 1, z: 1 }};
13-
13+
1414
this.fragmentSrc = [
1515

1616
"precision mediump float;",

filters/ColorBars.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Phaser.Filter.ColorBars = function (game) {
88

99
this.uniforms.alpha = { type: '1f', value: 1 }
1010
// this.uniforms.origin = { type: '1f', value: 2.0 }
11-
11+
1212
this.fragmentSrc = [
13-
13+
1414
"// bars - thygate@gmail.com",
1515
"// rotation and color mix modifications by malc (mlashley@gmail.com)",
1616
"// modified by @hintz 2013-04-30",
@@ -58,8 +58,8 @@ Phaser.Filter.ColorBars = function (game) {
5858
"color.a = alpha;",
5959
"gl_FragColor = color;",
6060
"}"
61-
62-
];
61+
62+
];
6363

6464
};
6565

filters/Fire.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Phaser.Filter.Fire = function (game) {
5454
"vec3 c = mix(c1, c2, fbm(p + r)) + mix(c3, c4, r.x) - mix(c5, c6, r.y);",
5555
"gl_FragColor = vec4(c * cos(shift * gl_FragCoord.y / resolution.y), alpha);",
5656
"}"
57-
];
57+
];
5858

5959
};
6060

@@ -65,11 +65,11 @@ Phaser.Filter.Fire.prototype.init = function (width, height, alpha, shift) {
6565

6666
this.setResolution(width, height);
6767

68-
if (typeof alpha !== 'undefined') {
68+
if (typeof alpha !== 'undefined') {
6969
this.uniforms.alpha.value = alpha;
7070
}
7171

72-
if (typeof shift !== 'undefined') {
72+
if (typeof shift !== 'undefined') {
7373
this.uniforms.shift.value = shift;
7474
}
7575

filters/Gray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Phaser.Filter.Gray = function (game) {
1212
Phaser.Filter.call(this, game);
1313

1414
this.uniforms.gray = { type: '1f', value: 1.0 };
15-
15+
1616
this.fragmentSrc = [
1717

1818
"precision mediump float;",

filters/HueRotate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Phaser.Filter.HueRotate = function (game) {
99
this.uniforms.alpha = { type: '1f', value: 1.0 };
1010
this.uniforms.size = { type: '1f', value: 0.03 };
1111
this.uniforms.iChannel0 = { type: 'sampler2D', value: null, textureData: { repeat: true } }
12-
12+
1313
this.fragmentSrc = [
1414

1515
"precision mediump float;",

filters/LightBeam.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Phaser.Filter.LightBeam = function (game) {
1212
this.uniforms.red = { type: '1f', value: 2.0 }
1313
this.uniforms.green = { type: '1f', value: 1.0 }
1414
this.uniforms.blue = { type: '1f', value: 1.0 }
15-
15+
1616
this.fragmentSrc = [
1717

1818
"precision mediump float;",
@@ -28,9 +28,9 @@ Phaser.Filter.LightBeam = function (game) {
2828
"void main(void) {",
2929

3030
"vec2 uPos = (gl_FragCoord.xy / resolution.xy);",
31-
31+
3232
"uPos.y -= 0.50;",
33-
33+
3434
"float vertColor = 0.0;",
3535

3636
"for (float i = 0.0; i < 1.0; i++)",
@@ -40,11 +40,11 @@ Phaser.Filter.LightBeam = function (game) {
4040
"float fTemp = abs(1.0 / uPos.y / thickness);",
4141
"vertColor += fTemp;",
4242
"}",
43-
43+
4444
"vec4 color = vec4(vertColor * red, vertColor * green, vertColor * blue, alpha);",
4545
"gl_FragColor = color;",
4646
"}"
47-
];
47+
];
4848

4949
};
5050

filters/Marble.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Phaser.Filter.Marble = function (game) {
1212
this.uniforms.fluid_speed = { type: '1f', value: 10.0 }
1313

1414
this.uniforms.color_intensity = { type: '1f', value: 0.30 }
15-
15+
1616
// The fragment shader source
1717
this.fragmentSrc = [
1818

0 commit comments

Comments
 (0)