diff engine/core/view/renderers/quadtreerenderer.cpp @ 661:e3140f01749d

* Merged the light branch back into trunk. * Modified the demos so they work with the new loaders and setting.
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 05 Nov 2010 15:21:10 +0000
parents 16c2b3ee59ce
children
line wrap: on
line diff
--- a/engine/core/view/renderers/quadtreerenderer.cpp	Wed Nov 03 13:44:12 2010 +0000
+++ b/engine/core/view/renderers/quadtreerenderer.cpp	Fri Nov 05 15:21:10 2010 +0000
@@ -90,10 +90,12 @@
 		emc= cg->toMapCoordinates(ExactModelCoordinate( x+size,y+size) );
 		ScreenPoint scrpt4 =m_camera->toScreenCoordinates( emc );
 
+		m_renderbackend->disableLighting();
 		m_renderbackend->drawLine( Point(scrpt1.x,scrpt1.y) , Point(scrpt2.x,scrpt2.y), 255, 255, 255);
 		m_renderbackend->drawLine(Point(scrpt1.x,scrpt1.y), Point(scrpt3.x,scrpt3.y), 255, 255, 255);
 		m_renderbackend->drawLine(Point(scrpt3.x,scrpt3.y), Point(scrpt4.x,scrpt4.y), 255, 255, 255);
 		m_renderbackend->drawLine(Point(scrpt2.x,scrpt2.y), Point(scrpt4.x,scrpt4.y), 255, 255, 255);
+		m_renderbackend->enableLighting();
 
 		return true;
 	}