From 4bf044d36122b5957aab2577769ffe47ca64d4f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ko=C5=82odziejski?= Date: Wed, 20 Oct 2021 07:27:49 +0200 Subject: [PATCH] STARK: Cleanup comments --- engines/stark/gfx/openglprop.cpp | 4 ++-- engines/stark/gfx/openglsprop.cpp | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/engines/stark/gfx/openglprop.cpp b/engines/stark/gfx/openglprop.cpp index 05d14a2ced6..de945f851ac 100644 --- a/engines/stark/gfx/openglprop.cpp +++ b/engines/stark/gfx/openglprop.cpp @@ -59,12 +59,12 @@ void OpenGLPropRenderer::render(const Math::Vector3d &position, float direction, Math::Matrix4 projection = StarkScene->getProjectionMatrix(); Math::Matrix4 modelViewMatrix = view * model; - modelViewMatrix.transpose(); // OpenGL expects matrices transposed when compared to ScummVM's + modelViewMatrix.transpose(); // OpenGL expects matrices transposed glMatrixMode(GL_MODELVIEW); glLoadMatrixf(modelViewMatrix.getData()); Math::Matrix4 projectionMatrix = projection; - projectionMatrix.transpose(); // OpenGL expects matrices transposed when compared to ScummVM's + projectionMatrix.transpose(); // OpenGL expects matrices transposed glMatrixMode(GL_PROJECTION); glLoadMatrixf(projectionMatrix.getData()); diff --git a/engines/stark/gfx/openglsprop.cpp b/engines/stark/gfx/openglsprop.cpp index e2e45eb4711..45f11a25915 100644 --- a/engines/stark/gfx/openglsprop.cpp +++ b/engines/stark/gfx/openglsprop.cpp @@ -65,15 +65,13 @@ void OpenGLSPropRenderer::render(const Math::Vector3d &position, float direction Math::Matrix4 projection = StarkScene->getProjectionMatrix(); Math::Matrix4 modelViewMatrix = view * model; - modelViewMatrix.transpose(); // OpenGL expects matrices transposed when compared to ScummVM's + modelViewMatrix.transpose(); // OpenGL expects matrices transposed Math::Matrix4 projectionMatrix = projection; - projectionMatrix.transpose(); // OpenGL expects matrices transposed when compared to ScummVM's + projectionMatrix.transpose(); // OpenGL expects matrices transposed Math::Matrix4 normalMatrix = modelViewMatrix; normalMatrix.invertAffineOrthonormal(); - //normalMatrix.transpose(); // OpenGL expects matrices transposed when compared to ScummVM's - //normalMatrix.transpose(); // No need to transpose twice in a row _shader->enableVertexAttribute("position", _faceVBO, 3, GL_FLOAT, GL_FALSE, 9 * sizeof(float), 0); _shader->enableVertexAttribute("normal", _faceVBO, 3, GL_FLOAT, GL_FALSE, 9 * sizeof(float), 12);