[colobot] 384/390: Defaulted shadow color to 0.5 in OpenGL 2.1 engine

Didier Raboud odyx at moszumanska.debian.org
Fri Jun 12 14:22:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch upstream/latest
in repository colobot.

commit ae29ebead331a67c190249dee79eada579a41af1
Author: Tomasz Kapuściński <tomaszkax86 at gmail.com>
Date:   Fri Jun 5 19:48:28 2015 +0200

    Defaulted shadow color to 0.5 in OpenGL 2.1 engine
---
 src/graphics/opengl/gl21device.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/graphics/opengl/gl21device.cpp b/src/graphics/opengl/gl21device.cpp
index 8449098..f5f1d81 100644
--- a/src/graphics/opengl/gl21device.cpp
+++ b/src/graphics/opengl/gl21device.cpp
@@ -350,6 +350,8 @@ bool CGL21Device::Create()
     glUniform2f(uni_FogRange, 100.0f, 200.0f);
     glUniform4f(uni_FogColor, 0.8f, 0.8f, 0.8f, 1.0f);
 
+    glUniform1f(uni_ShadowColor, 0.5f);
+
     glUniform1i(uni_LightingEnabled, 0);
     for (int i = 0; i < 8; i++)
         glUniform1i(uni_LightEnabled[i], 0);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list