summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-04-03 17:05:44 -0500
committerDave Parks <davep@lindenlab.com>2012-04-03 17:05:44 -0500
commit6b64ea6779a6d35bb6c9f94e354f5635ee633366 (patch)
tree5e97f61972165d93d9f324654803139271abd228 /indra/newview/pipeline.cpp
parent778aae7846756be06c703b090477d6a6db1e8aea (diff)
Switch x-ray render to non-wirefrmae by default.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index dcc3bbbe22..a02c39e728 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -4429,15 +4429,25 @@ void LLPipeline::renderDebug()
if (pathfindingConsole->isRenderXRay())
{
+ gPathfindingProgram.uniform1f("tint", gSavedSettings.getF32("PathfindingXRayTint"));
+ gPathfindingProgram.uniform1f("alpha_scale", gSavedSettings.getF32("PathfindingXRayOpacity"));
+ LLGLEnable blend(GL_BLEND);
+ LLGLDepthTest depth(GL_TRUE, GL_FALSE, GL_GREATER);
+
+ glPolygonOffset(offset, -offset);
+
+ if (gSavedSettings.getBOOL("PathfindingXRayWireframe"))
{ //draw hidden wireframe as darker and less opaque
- glPolygonOffset(offset, -offset);
- gPathfindingProgram.uniform1f("tint", gSavedSettings.getF32("PathfindingXRayTint"));
- gPathfindingProgram.uniform1f("alpha_scale", gSavedSettings.getF32("PathfindingXRayOpacity"));
gPathfindingProgram.uniform1f("ambiance", 1.f);
- LLGLEnable blend(GL_BLEND);
- LLGLDepthTest depth(GL_TRUE, GL_FALSE, GL_GREATER);
llPathingLibInstance->renderNavMeshShapesVBO( render_order[i] );
}
+ else
+ {
+ glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+ gPathfindingProgram.uniform1f("ambiance", ambiance);
+ llPathingLibInstance->renderNavMeshShapesVBO( render_order[i] );
+ glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+ }
}
{ //draw visible wireframe as brighter, thicker and more opaque