Skip to content

Commit 9356744

Browse files
committed
argument caps
1 parent 2ff76eb commit 9356744

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/renderer/webgl/pipelines/components/ModelViewProjection.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,7 @@ var ModelViewProjection = {
695695
projectionMatrix[15] = 1.0;
696696

697697
this.projectionMatrixDirty = true;
698+
698699
return this;
699700
},
700701

@@ -704,17 +705,17 @@ var ModelViewProjection = {
704705
* @method Phaser.Renderer.WebGL.Pipelines.ModelViewProjection#projPersp
705706
* @since 3.0.0
706707
*
707-
* @param {number} fovy - The fovy value.
708+
* @param {number} fovY - The fov value.
708709
* @param {number} aspectRatio - The aspectRatio value.
709710
* @param {number} near - The near value.
710711
* @param {number} far - The far value.
711712
*
712713
* @return {this} This Model View Projection.
713714
*/
714-
projPersp: function (fovy, aspectRatio, near, far)
715+
projPersp: function (fovY, aspectRatio, near, far)
715716
{
716717
var projectionMatrix = this.projectionMatrix;
717-
var fov = 1.0 / Math.tan(fovy / 2.0);
718+
var fov = 1.0 / Math.tan(fovY / 2.0);
718719
var nearFar = 1.0 / (near - far);
719720

720721
projectionMatrix[0] = fov / aspectRatio;
@@ -735,6 +736,7 @@ var ModelViewProjection = {
735736
projectionMatrix[15] = 0.0;
736737

737738
this.projectionMatrixDirty = true;
739+
738740
return this;
739741
}
740742
};

0 commit comments

Comments
 (0)