[Scummvm-git-logs] scummvm master -> d5144cc91a9958690d64e5db5f67ac8c9a5edf24

aquadran noreply at scummvm.org
Mon Sep 22 19:08:26 UTC 2025


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:
d5144cc91a WINTERMUTE: Normalize direction vector just in case


Commit: d5144cc91a9958690d64e5db5f67ac8c9a5edf24
    https://github.com/scummvm/scummvm/commit/d5144cc91a9958690d64e5db5f67ac8c9a5edf24
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-09-22T21:08:21+02:00

Commit Message:
WINTERMUTE: Normalize direction vector just in case

Changed paths:
    engines/wintermute/base/gfx/3dlight.cpp


diff --git a/engines/wintermute/base/gfx/3dlight.cpp b/engines/wintermute/base/gfx/3dlight.cpp
index 1e1867f878d..486efef8e18 100644
--- a/engines/wintermute/base/gfx/3dlight.cpp
+++ b/engines/wintermute/base/gfx/3dlight.cpp
@@ -62,6 +62,7 @@ bool Light3D::setLight(int index) {
 	diffuse._w = 1.0f;
 
 	DXVector3 dir = _target - _pos;
+	DXVec3Normalize(&dir, &dir);
 	_game->_renderer3D->setLightParameters(index, _pos, dir, diffuse, _isSpotlight);
 
 	if (_active) {




More information about the Scummvm-git-logs mailing list