[Scummvm-git-logs] scummvm master -> 64867f774d10f894792a447478df04e93d4230b5
klusark
noreply at scummvm.org
Mon Nov 2 15:26:47 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
64867f774d GRIM: Implement actor scale for OpenGL with shaders
Commit: 64867f774d10f894792a447478df04e93d4230b5
https://github.com/scummvm/scummvm/commit/64867f774d10f894792a447478df04e93d4230b5
Author: Joel Teichroeb (joel at teichroeb.net)
Date: 2026-11-02T10:24:31-05:00
Commit Message:
GRIM: Implement actor scale for OpenGL with shaders
Changed paths:
engines/grim/gfx_opengl_shaders.cpp
diff --git a/engines/grim/gfx_opengl_shaders.cpp b/engines/grim/gfx_opengl_shaders.cpp
index 8231e7228dd..1c7d50de4ba 100644
--- a/engines/grim/gfx_opengl_shaders.cpp
+++ b/engines/grim/gfx_opengl_shaders.cpp
@@ -729,7 +729,7 @@ void GfxOpenGLS::startActorDraw(const Actor *actor) {
const Math::Vector3d &pos = actor->getWorldPos();
const Math::Quaternion &quat = actor->getRotationQuat();
- //const float scale = actor->getScale();
+ const float scale = actor->getScale();
Math::Matrix4 viewMatrix = _viewMatrix;
viewMatrix.transpose();
@@ -773,6 +773,9 @@ void GfxOpenGLS::startActorDraw(const Actor *actor) {
}
} else {
Math::Matrix4 modelMatrix = quat.toMatrix();
+ modelMatrix *= scale;
+ modelMatrix.setValue(3, 3, 1.0f);
+
bool hasZBuffer = g_grim->getCurrSet()->getCurrSetup()->_bkgndZBm;
Math::Matrix4 extraMatrix;
_matrixStack.top() = extraMatrix;
More information about the Scummvm-git-logs
mailing list