From a6876f0872d4653f98e9463323f4b3ccd5603ef1 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 2 Jun 2015 20:46:21 +0200 Subject: [PATCH] Optimizing scheduling of shadow renders. --- game/graphics.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/graphics.cc b/game/graphics.cc index ea57422..a79c63b 100644 --- a/game/graphics.cc +++ b/game/graphics.cc @@ -690,7 +690,7 @@ void Graphics::updateLights() { // update priority of the shadow render queue for(unsigned int i = 0; igetCameraCenter()->getPosition(), shadowRenderQueue.at(i).light->getPosition()); - shadowRenderQueue.at(i).priority = (int) 100*std::exp(5.0f - 0.1f * distance); + shadowRenderQueue.at(i).priority = (int) 100*std::exp(5.0f - 0.05f * distance); } // Build light position array