1
0
Fork 0

WS30 - remove separate water mesh option

No longer required now water shader integrated into
main ws30 shader.  Also clean up.
This commit is contained in:
Stuart Buchanan 2022-11-08 21:47:41 +00:00
parent 0deaec870a
commit 6d76b657d6
2 changed files with 1 additions and 6 deletions

View file

@ -280,10 +280,8 @@ public:
{
SGPropertyNode_ptr elevationMeshNode = fgGetNode(root_node_path, true);
setupPropertyListener(elevationMeshNode, "constraint-gap-m");
setupPropertyListener(elevationMeshNode, "lod-range-factor");
setupPropertyListener(elevationMeshNode, "sample-ratio");
setupPropertyListener(elevationMeshNode, "vertical-scale");
setupPropertyListener(elevationMeshNode, "separate-water-mesh");
// We also need to set the maximum range based on the LOD ranges
SGPropertyNode_ptr lodNode = fgGetNode(lod_node_path, true);
@ -308,7 +306,6 @@ public:
virtual void valueChanged(SGPropertyNode * node)
{
float f = node->getFloatValue();
bool b = node->getBoolValue();
std::string name(node->getNameString());
if (name == "constraint-gap-m") {
@ -317,8 +314,6 @@ public:
SGSceneFeatures::instance()->setVPBSampleRatio(f);
} else if (name == "vertical-scale") {
SGSceneFeatures::instance()->setVPBVerticalScale(f);
} else if (name == "separate-water-mesh") {
SGSceneFeatures::instance()->setVPBSeparateWaterMesh(b);
} else {
SG_LOG(SG_TERRAIN, SG_ALERT, "Unexpected property in listener " << node->getPath());
}