Changed let to var

This commit is contained in:
Yat Hin Wong 2018-02-13 17:03:28 +01:00
parent 8afeafd66b
commit 3af1d57a95

View file

@ -469,8 +469,8 @@ var ModelViewProjection = {
projPersp: function (fovy, aspectRatio, near, far)
{
var projectionMatrix = this.projectionMatrix;
let fov = 1.0 / Math.tan(fovy / 2.0);
let nearFar = 1.0 / (near - far);
var fov = 1.0 / Math.tan(fovy / 2.0);
var nearFar = 1.0 / (near - far);
projectionMatrix[0] = fov / aspectRatio;
projectionMatrix[1] = 0.0;