Light the navmesh

master
Dave Parks 2012-04-04 12:29:36 -05:00
parent c3726f4f15
commit 499a43df65
1 changed files with 3 additions and 3 deletions

View File

@ -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