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:
parent
0deaec870a
commit
6d76b657d6
2 changed files with 1 additions and 6 deletions
|
@ -280,10 +280,8 @@ public:
|
||||||
{
|
{
|
||||||
SGPropertyNode_ptr elevationMeshNode = fgGetNode(root_node_path, true);
|
SGPropertyNode_ptr elevationMeshNode = fgGetNode(root_node_path, true);
|
||||||
setupPropertyListener(elevationMeshNode, "constraint-gap-m");
|
setupPropertyListener(elevationMeshNode, "constraint-gap-m");
|
||||||
setupPropertyListener(elevationMeshNode, "lod-range-factor");
|
|
||||||
setupPropertyListener(elevationMeshNode, "sample-ratio");
|
setupPropertyListener(elevationMeshNode, "sample-ratio");
|
||||||
setupPropertyListener(elevationMeshNode, "vertical-scale");
|
setupPropertyListener(elevationMeshNode, "vertical-scale");
|
||||||
setupPropertyListener(elevationMeshNode, "separate-water-mesh");
|
|
||||||
|
|
||||||
// We also need to set the maximum range based on the LOD ranges
|
// We also need to set the maximum range based on the LOD ranges
|
||||||
SGPropertyNode_ptr lodNode = fgGetNode(lod_node_path, true);
|
SGPropertyNode_ptr lodNode = fgGetNode(lod_node_path, true);
|
||||||
|
@ -308,7 +306,6 @@ public:
|
||||||
virtual void valueChanged(SGPropertyNode * node)
|
virtual void valueChanged(SGPropertyNode * node)
|
||||||
{
|
{
|
||||||
float f = node->getFloatValue();
|
float f = node->getFloatValue();
|
||||||
bool b = node->getBoolValue();
|
|
||||||
std::string name(node->getNameString());
|
std::string name(node->getNameString());
|
||||||
|
|
||||||
if (name == "constraint-gap-m") {
|
if (name == "constraint-gap-m") {
|
||||||
|
@ -317,8 +314,6 @@ public:
|
||||||
SGSceneFeatures::instance()->setVPBSampleRatio(f);
|
SGSceneFeatures::instance()->setVPBSampleRatio(f);
|
||||||
} else if (name == "vertical-scale") {
|
} else if (name == "vertical-scale") {
|
||||||
SGSceneFeatures::instance()->setVPBVerticalScale(f);
|
SGSceneFeatures::instance()->setVPBVerticalScale(f);
|
||||||
} else if (name == "separate-water-mesh") {
|
|
||||||
SGSceneFeatures::instance()->setVPBSeparateWaterMesh(b);
|
|
||||||
} else {
|
} else {
|
||||||
SG_LOG(SG_TERRAIN, SG_ALERT, "Unexpected property in listener " << node->getPath());
|
SG_LOG(SG_TERRAIN, SG_ALERT, "Unexpected property in listener " << node->getPath());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue