[Scummvm-git-logs] scummvm master -> 0c3baef63107255f31a7a888f20c06e090af5c64
aquadran
noreply at scummvm.org
Sat Jun 25 22:20:38 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
0c3baef631 WINTERMUTE: WME3D: Restore original looking code
Commit: 0c3baef63107255f31a7a888f20c06e090af5c64
https://github.com/scummvm/scummvm/commit/0c3baef63107255f31a7a888f20c06e090af5c64
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2022-06-26T00:20:34+02:00
Commit Message:
WINTERMUTE: WME3D: Restore original looking code
Changed paths:
engines/wintermute/ad/ad_actor_3dx.cpp
engines/wintermute/ad/ad_scene.cpp
diff --git a/engines/wintermute/ad/ad_actor_3dx.cpp b/engines/wintermute/ad/ad_actor_3dx.cpp
index dc5805dd661..63e2a01825e 100644
--- a/engines/wintermute/ad/ad_actor_3dx.cpp
+++ b/engines/wintermute/ad/ad_actor_3dx.cpp
@@ -497,7 +497,8 @@ bool AdActor3DX::displayShadowVolume() {
continue;
}
- at->displayShadowVol(_worldMatrix * (*boneMat), lightVector, extrusionDepth, true);
+ Math::Matrix4 viewMat = *boneMat;
+ at->displayShadowVol(viewMat, lightVector, extrusionDepth, true);
}
_gameRef->_renderer3D->setWorldTransform(_worldMatrix);
diff --git a/engines/wintermute/ad/ad_scene.cpp b/engines/wintermute/ad/ad_scene.cpp
index f721a5c101e..58947af8625 100644
--- a/engines/wintermute/ad/ad_scene.cpp
+++ b/engines/wintermute/ad/ad_scene.cpp
@@ -1170,7 +1170,7 @@ bool AdScene::traverseNodes(bool doUpdate) {
#ifdef ENABLE_WME3D
if (!doUpdate && _sceneGeometry && _layers[j]->_main) {
- if (_gameRef->getMaxShadowType(nullptr) >= SHADOW_STENCIL) {
+ if (_gameRef->getMaxShadowType() >= SHADOW_STENCIL) {
_sceneGeometry->renderShadowGeometry();
}
}
More information about the Scummvm-git-logs
mailing list