Added support for rendering the regions water height.
parent
c32f12afd3
commit
7200b15002
|
|
@ -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() )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue