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:
parent
24e50def19
commit
1579258320
1 changed files with 0 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue