[Scummvm-git-logs] scummvm master -> dbfb4844e3c2354b3b264212de5c01498f92977f
aquadran
aquadran at gmail.com
Mon Oct 18 17:02:50 UTC 2021
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:
dbfb4844e3 STARK: Revert partially negation only for directional light
Commit: dbfb4844e3c2354b3b264212de5c01498f92977f
https://github.com/scummvm/scummvm/commit/dbfb4844e3c2354b3b264212de5c01498f92977f
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-10-18T19:02:44+02:00
Commit Message:
STARK: Revert partially negation only for directional light
Changed paths:
engines/stark/gfx/opengl.cpp
diff --git a/engines/stark/gfx/opengl.cpp b/engines/stark/gfx/opengl.cpp
index d635d67941..dd8f6d8778 100644
--- a/engines/stark/gfx/opengl.cpp
+++ b/engines/stark/gfx/opengl.cpp
@@ -149,9 +149,9 @@ void OpenGLDriver::setupLights(const LightEntryArray &lights) {
lightColor[0] = (GLfloat)l->color.x();
lightColor[1] = (GLfloat)l->color.y();
lightColor[2] = (GLfloat)l->color.z();
- lightPos[0] = (GLfloat)eyeDirection.x();
- lightPos[1] = (GLfloat)eyeDirection.y();
- lightPos[2] = (GLfloat)eyeDirection.z();
+ lightPos[0] = (GLfloat)-eyeDirection.x();
+ lightPos[1] = (GLfloat)-eyeDirection.y();
+ lightPos[2] = (GLfloat)-eyeDirection.z();
lightPos[3] = 0;
break;
case LightEntry::kSpot:
More information about the Scummvm-git-logs
mailing list