From 499a43df65a49fd667fb666015b8900a4fd6aa6b Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Wed, 4 Apr 2012 12:29:36 -0500 Subject: Light the navmesh --- indra/newview/pipeline.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'indra/newview/pipeline.cpp') diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 5f0a47f11d..6f75c09803 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -4330,12 +4330,14 @@ void LLPipeline::renderDebug() if (pathfindingConsole->isShown()) { + F32 ambiance = gSavedSettings.getF32("PathfindingAmbiance"); + if (LLGLSLShader::sNoFixedFunction) { gPathfindingProgram.bind(); gPathfindingProgram.uniform1f("tint", 1.f); - gPathfindingProgram.uniform1f("ambiance", 1.f); + gPathfindingProgram.uniform1f("ambiance", ambiance); gPathfindingProgram.uniform1f("alpha_scale", 1.f); } @@ -4413,8 +4415,6 @@ void LLPipeline::renderDebug() LLGLEnable blend(GL_BLEND); { - F32 ambiance = gSavedSettings.getF32("PathfindingAmbiance"); - gPathfindingProgram.uniform1f("ambiance", ambiance); { //draw solid overlay -- cgit v1.2.3