From f9a0f79838d2431894bd6cc1e244f743e8581ccb Mon Sep 17 00:00:00 2001 From: Todd Stinson Date: Wed, 28 Mar 2012 18:26:00 -0700 Subject: Updating the navmesh colors based on discussions with Leo. --- indra/newview/app_settings/settings.xml | 40 +++++++++++++-------------- indra/newview/llfloaterpathfindingconsole.cpp | 6 ++-- indra/newview/pipeline.cpp | 3 +- 3 files changed, 24 insertions(+), 25 deletions(-) (limited to 'indra') diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 37e4a43449..829a5b75b1 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -13526,9 +13526,9 @@ Vector3 Value - 0.0 - 0.0 - 0.0 + 0.1960784313725490196078431372549 + 0.1960784313725490196078431372549 + 0.1960784313725490196078431372549 WalkableRGB @@ -13541,9 +13541,9 @@ Vector3 Value + 0.0 255.0 - 255.0 - 255.0 + 0.0 WalkableA @@ -13593,9 +13593,9 @@ Vector3 Value - 255.0 - 255.0 + 128.0 0.0 + 255.0 MaterialA @@ -13620,7 +13620,7 @@ Value 255.0 - 0.0 + 255.0 0.0 @@ -13645,9 +13645,9 @@ Vector3 Value - 0.0 - 40.0 - 114.0 + 220.0 + 220.0 + 220.0 ConnectedEdgeA @@ -13659,7 +13659,7 @@ Type F32 Value - 75 + 255 BoundaryEdgeRGB @@ -13671,7 +13671,7 @@ Vector3 Value - 170.0 + 255.0 0.0 0.0 @@ -13685,7 +13685,7 @@ Type F32 Value - 75 + 255 HeatColorBase @@ -13698,8 +13698,8 @@ Value 0.0 - 40.0 - 114.0 + 1.0 + 0.5 HeatColorBaseA @@ -13711,7 +13711,7 @@ Type F32 Value - 75 + 1.0 HeatColorMax @@ -13724,8 +13724,8 @@ Value 0.0 - 40.0 - 114.0 + 1.0 + 1.0 HeatColorMaxA @@ -13737,7 +13737,7 @@ Type F32 Value - 75 + 1.0 FaceColorRGB diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index 40e4ab67e2..fd50b4370e 100644 --- a/indra/newview/llfloaterpathfindingconsole.cpp +++ b/indra/newview/llfloaterpathfindingconsole.cpp @@ -1041,18 +1041,18 @@ void LLFloaterPathfindingConsole::fillInColorsForNavMeshVisualization() in = gSavedSettings.getVector3("HeatColorBase"); a = gSavedSettings.getF32("HeatColorBaseA"); - colors.mHeatColorBase= LLColor4U( (U8)in[0],(U8)in[1],(U8)in[2],(U8)a ); + colors.mHeatColorBase= LLVector4(in, a); in = gSavedSettings.getVector3("HeatColorMax"); a = gSavedSettings.getF32("HeatColorMaxA"); - colors.mHeatColorMax= LLColor4U( (U8)in[0],(U8)in[1],(U8)in[2],(U8)a ); + colors.mHeatColorMax= LLVector4( in, a ); in = gSavedSettings.getVector3("FaceColorRGB"); a = gSavedSettings.getF32("FaceColorA"); colors.mFaceColor= LLColor4U( (U8)in[0],(U8)in[1],(U8)in[2],(U8)a ); in = gSavedSettings.getVector3("NavMeshClearRGB"); - colors.mNavMeshClear= LLColor4U( (U8)in[0],(U8)in[1],(U8)in[2], 0 ); + colors.mNavMeshClear= LLColor4(in[0], in[1], in[2], 0); mNavMeshColors = colors; diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 89824d9da6..3d4cf6afd9 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -4344,8 +4344,7 @@ void LLPipeline::renderDebug() } else { - //glClearColor(0,0,0,0); - LLColor4U clearColor = pathfindingConsole->mNavMeshColors.mNavMeshClear; + const LLColor4 &clearColor = pathfindingConsole->mNavMeshColors.mNavMeshClear; glClearColor(clearColor.mV[0],clearColor.mV[1],clearColor.mV[2],0); glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); glPolygonMode( GL_FRONT_AND_BACK, GL_FILL ); -- cgit v1.2.3