[Scummvm-git-logs] scummvm master -> a1f043ec09cea603aacd27eb44b7edca5894dca4
aquadran
noreply at scummvm.org
Tue Oct 22 18:40:58 UTC 2024
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:
a1f043ec09 WINTERMUTE: Synced shadow volume code with original
Commit: a1f043ec09cea603aacd27eb44b7edca5894dca4
https://github.com/scummvm/scummvm/commit/a1f043ec09cea603aacd27eb44b7edca5894dca4
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2024-10-22T20:40:53+02:00
Commit Message:
WINTERMUTE: Synced shadow volume code with original
Changed paths:
engines/wintermute/base/gfx/3dshadow_volume.cpp
diff --git a/engines/wintermute/base/gfx/3dshadow_volume.cpp b/engines/wintermute/base/gfx/3dshadow_volume.cpp
index 737ab9bfa6d..64986ce8d21 100644
--- a/engines/wintermute/base/gfx/3dshadow_volume.cpp
+++ b/engines/wintermute/base/gfx/3dshadow_volume.cpp
@@ -53,9 +53,9 @@ bool ShadowVolume::addMesh(DXMesh *mesh, uint32 *adjacency, DXMatrix *modelMat,
if (!mesh || !adjacency)
return false;
- DXVector3 invLight = *light;
- DXMatrix matInverseModel = *modelMat;
- DXMatrixInverse(&matInverseModel, nullptr, &matInverseModel);
+ DXVector3 invLight;
+ DXMatrix matInverseModel;
+ DXMatrixInverse(&matInverseModel, nullptr, modelMat);
DXVec3TransformNormal(&invLight, light, &matInverseModel);
float *points = (float *)mesh->getVertexBuffer().ptr();
More information about the Scummvm-git-logs
mailing list