diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2013-02-28 21:26:09 +0100 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-02-28 22:06:22 +0100 |
commit | 08c646bb929c7bc98b005521b6e0c14428f651d0 (patch) | |
tree | bd708ad596274bea8c387122bcd9fceadf620373 /src/object/robotmain.cpp | |
parent | b361d27d332591c59b5f8613fbf724d82872b877 (diff) | |
download | colobot-08c646bb929c7bc98b005521b6e0c14428f651d0.tar.gz colobot-08c646bb929c7bc98b005521b6e0c14428f651d0.tar.bz2 colobot-08c646bb929c7bc98b005521b6e0c14428f651d0.zip |
Fixed stupid error, tweaked ambient light colors
* fixed stupid error in light manager
* tweaked ambient light colors to 0.1 of diffuse;
colors should not be oversaturated now
Diffstat (limited to 'src/object/robotmain.cpp')
-rw-r--r-- | src/object/robotmain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index 6efd853..29fdd31 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -4917,6 +4917,7 @@ int CRobotMain::CreateLight(Math::Vector direction, Gfx::Color color) Gfx::Light light; light.type = Gfx::LIGHT_DIRECTIONAL; light.diffuse = color; + light.ambient = color * 0.1f; light.direction = direction; int obj = m_lightMan->CreateLight(Gfx::LIGHT_PRI_HIGH); m_lightMan->SetLight(obj, light); @@ -4934,6 +4935,7 @@ int CRobotMain::CreateSpot(Math::Vector pos, Gfx::Color color) Gfx::Light light; light.type = Gfx::LIGHT_SPOT; light.diffuse = color; + light.ambient = color * 0.1f; light.position = pos; light.direction = Math::Vector(0.0f, -1.0f, 0.0f); light.spotIntensity = 1.0f; |