1
0
Fork 0

WS30: Remove lod-range-factor and VPB max range

Better handled by setting the LoDScale in the camera
rather than modifying the LoD ranges themselves.
This commit is contained in:
Stuart Buchanan 2021-10-12 21:41:11 +01:00
parent 96dee79873
commit c92d1c01a7

View file

@ -311,18 +311,10 @@ public:
if (name == "constraint-gap-m") {
SGSceneFeatures::instance()->setVPBConstraintGap(f);
} else if (name == "lod-range-factor") {
SGSceneFeatures::instance()->setVPBRangeFactor(f);
} else if (name == "sample-ratio") {
SGSceneFeatures::instance()->setVPBSampleRatio(f);
} else if (name == "vertical-scale") {
SGSceneFeatures::instance()->setVPBVerticalScale(f);
} else if ((name == "detailed") || (name == "rough-delta") || (name == "bare-delta")) {
double range = fgGetNode("/sim/rendering/static-lod/detailed", true)->getDoubleValue() +
fgGetNode("/sim/rendering/static-lod/rough-delta", true)->getDoubleValue() +
fgGetNode("/sim/rendering/static-lod/bare-delta", true)->getDoubleValue();
SGSceneFeatures::instance()->setVPBMaxRange(range);
} else {
SG_LOG(SG_TERRAIN, SG_ALERT, "Unexpected property in listener " << node->getPath());
}