From 1bf6acd80dcfe9b8267e5e5b7f72f53936352709 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 18 Apr 2018 09:33:12 +0100 Subject: [PATCH] Added --equalize-boundaries -e command line option to call terrain->setEqualizeBoundaries(true) --- examples/osgterrain/osgterrain.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/osgterrain/osgterrain.cpp b/examples/osgterrain/osgterrain.cpp index ce2bd11cc..4aa1ab214 100644 --- a/examples/osgterrain/osgterrain.cpp +++ b/examples/osgterrain/osgterrain.cpp @@ -379,6 +379,11 @@ int main(int argc, char** argv) terrain->setVerticalScale(verticalScale); terrain->setBlendingPolicy(blendingPolicy); + if (arguments.read("--equalize-boundaries") || arguments.read("-e")) + { + terrain->setEqualizeBoundaries(true); + } + if (useDisplacementMappingTechnique) {