Added support for controlling the LODScale via '*' and '+' keys in
osgProducer::Viewer.
This commit is contained in:
parent
10a3accf0b
commit
d072e1087c
@ -110,6 +110,9 @@ class OSGPRODUCER_EXPORT OsgCameraGroup : public Producer::CameraGroup
|
||||
|
||||
void setLODScale( float scale );
|
||||
|
||||
float getLODScale() const { return _LODScale; }
|
||||
|
||||
|
||||
void setFusionDistance( osgUtil::SceneView::FusionDistanceMode mode,float value=1.0f);
|
||||
|
||||
|
||||
|
@ -830,6 +830,14 @@ bool ViewerEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActio
|
||||
return true;
|
||||
}
|
||||
|
||||
case '*' :
|
||||
case '/' :
|
||||
{
|
||||
if (ea.getKey()=='*') _cg->setLODScale( _cg->getLODScale() * 1.1f);
|
||||
else _cg->setLODScale( _cg->getLODScale() / 1.1f);
|
||||
return true;
|
||||
}
|
||||
|
||||
case osgGA::GUIEventAdapter::KEY_Help :
|
||||
case 'h' :
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user