Skip to content

Commit

Permalink
MeasureTool: use automatic depth offset
Browse files Browse the repository at this point in the history
  • Loading branch information
gwaldron committed Jun 20, 2016
1 parent a8e4d4c commit c8476ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/osgEarthUtil/MeasureTool.cpp
Expand Up @@ -93,13 +93,12 @@ MeasureToolHandler::rebuild()
// clamp to the terrain skin as it pages in
AltitudeSymbol* alt = _feature->style()->getOrCreate<AltitudeSymbol>();
alt->clamping() = alt->CLAMP_TO_TERRAIN;
//alt->technique() = alt->TECHNIQUE_GPU;
alt->technique() = alt->TECHNIQUE_SCENE;

// offset to mitigate Z fighting
RenderSymbol* render = _feature->style()->getOrCreate<RenderSymbol>();
render->depthOffset()->enabled() = true;
render->depthOffset()->minBias() = 1000;
render->depthOffset()->automatic() = true;

// define a style for the line
LineSymbol* ls = _feature->style()->getOrCreate<LineSymbol>();
Expand Down

0 comments on commit c8476ee

Please sign in to comment.