1
0
Fork 0

WS3.0: Remove setLODScale property

This scales all LOD ranges and was added in an attempt
to control WS3.0 LOD ranges.  However it badly impacts
WS2.0 draw distances, and is not the right solution
for WS3.0.  So removing.
This commit is contained in:
Stuart Buchanan 2021-01-14 20:08:15 +00:00
parent 24e50def19
commit 1579258320

View file

@ -142,13 +142,11 @@ public:
_cameraGroup(cg) {
listenToNode("znear", 0.1f);
listenToNode("zfar", 120000.0f);
listenToNode("lod", 1.5f);
}
virtual ~CameraGroupListener() {
unlisten("znear");
unlisten("zfar");
unlisten("lod");
}
virtual void valueChanged(SGPropertyNode* prop) {
@ -156,9 +154,6 @@ public:
_cameraGroup->_zNear = prop->getFloatValue();
} else if (!strcmp(prop->getName(), "zfar")) {
_cameraGroup->_zFar = prop->getFloatValue();
} else if (!strcmp(prop->getName(), "lod")) {
const float new_lod = prop->getFloatValue();
_cameraGroup->_viewer->getCamera()->setLODScale(new_lod);
}
}
private: