From d1fe0d2dcc30a76055d6423805f8e0108b4b64be Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Thu, 26 Jul 2012 19:05:09 +0200 Subject: Lighting - fixed problems with lighting - added light_test --- src/graphics/opengl/gldevice.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/graphics/opengl/gldevice.h') 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 m_lights; //! Current lights enable status -- cgit v1.2.3-1-g7c22