diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-07-26 19:05:09 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-07-26 19:05:09 +0200 |
commit | d1fe0d2dcc30a76055d6423805f8e0108b4b64be (patch) | |
tree | 248af1f3ace42ddd27c69d7a49132584e8b9b335 /src/graphics/opengl/gldevice.h | |
parent | bc1c9b5284c10d8aafc04bcd6c3597b3626a782f (diff) | |
download | colobot-d1fe0d2dcc30a76055d6423805f8e0108b4b64be.tar.gz colobot-d1fe0d2dcc30a76055d6423805f8e0108b4b64be.tar.bz2 colobot-d1fe0d2dcc30a76055d6423805f8e0108b4b64be.zip |
Lighting
- fixed problems with lighting
- added light_test
Diffstat (limited to 'src/graphics/opengl/gldevice.h')
-rw-r--r-- | src/graphics/opengl/gldevice.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphics/opengl/gldevice.h b/src/graphics/opengl/gldevice.h index 0f4d0c9..b779123 100644 --- a/src/graphics/opengl/gldevice.h +++ b/src/graphics/opengl/gldevice.h @@ -155,6 +155,8 @@ public: private: //! Updates internal modelview matrix void UpdateModelviewMatrix(); + //! Updates position for given light based on transformation matrices + void UpdateLightPosition(int index); private: //! Was initialized? @@ -174,6 +176,8 @@ private: //! The current material Gfx::Material m_material; + //! Whether lighting is enabled + bool m_lighting; //! Current lights std::vector<Gfx::Light> m_lights; //! Current lights enable status |