Added support for rendering the regions water height.

meow-7.2.2
prep 2012-04-24 13:15:00 -04:00
parent c32f12afd3
commit 7200b15002
1 changed files with 14 additions and 0 deletions

View File

@ -4437,6 +4437,20 @@ void LLPipeline::renderDebug()
}
}
if ( pathfindingConsole->isRenderWaterPlane() )
{
if (LLGLSLShader::sNoFixedFunction)
{
LLGLEnable blend(GL_BLEND);
gPathfindingProgram.uniform1f("alpha_scale", 0.90f);
llPathingLibInstance->renderSimpleShapes( gGL, gAgent.getRegion()->getWaterHeight() );
}
else
{
llPathingLibInstance->renderSimpleShapes( gGL, gAgent.getRegion()->getWaterHeight() );
}
}
//physics/exclusion shapes
if ( pathfindingConsole->isRenderAnyShapes() )
{