[Scummvm-git-logs] scummvm master -> 2b15867dac57162c25da2171d0e249af859d2b07

neuromancer noreply at scummvm.org
Sat Feb 24 17:29:27 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:
2b15867dac FREESCAPE: better position of the sun and moon in eclipse


Commit: 2b15867dac57162c25da2171d0e249af859d2b07
    https://github.com/scummvm/scummvm/commit/2b15867dac57162c25da2171d0e249af859d2b07
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2024-02-24T17:30:27+01:00

Commit Message:
FREESCAPE: better position of the sun and moon in eclipse

Changed paths:
    engines/freescape/gfx_opengl.cpp


diff --git a/engines/freescape/gfx_opengl.cpp b/engines/freescape/gfx_opengl.cpp
index 8dd06b77ce2..f1f95c6e848 100644
--- a/engines/freescape/gfx_opengl.cpp
+++ b/engines/freescape/gfx_opengl.cpp
@@ -327,10 +327,10 @@ void OpenGLRenderer::drawCelestialBody(Math::Vector3d position, float radius, by
 }
 
 void OpenGLRenderer::drawEclipse(byte color1, byte color2, float progress) {
-	Math::Vector3d sunPosition(-5000, 2000, 500);
+	Math::Vector3d sunPosition(-5000, 1200, 0);
 	float radius = 500.0;
 	drawCelestialBody(sunPosition, radius, color1);
-	Math::Vector3d moonPosition(-5000, 2000, 500 + 500 * progress);
+	Math::Vector3d moonPosition(-5000, 1200, 0 + 500 * progress);
 	drawCelestialBody(moonPosition, radius, color2);
 }
 




More information about the Scummvm-git-logs mailing list