diff --git a/src/client/main.ts b/src/client/main.ts index 636565e..4806fee 100644 --- a/src/client/main.ts +++ b/src/client/main.ts @@ -514,6 +514,9 @@ function drawScene(gl: any, mat4.rotateZ(normalModelMatrix, normalModelMatrix, params.rot.z); + mat4.rotateY(normalModelMatrix, + normalModelMatrix, + squareRotation); const modelMatrix = mat4.create(); mat4.translate(modelMatrix, @@ -523,9 +526,6 @@ function drawScene(gl: any, -params.avg.y, -params.avg.z, ]); - mat4.rotateY(modelMatrix, - modelMatrix, - squareRotation); // Set the drawing position to the "identity" point, which is // the center of the scene.