Inverted the orientation of the 't' transparency control so that it's full on at the bottom of the screen, and full transparent at the bottom.

This commit is contained in:
Robert Osfield
2011-02-23 14:09:29 +00:00
parent 939522a214
commit c45717fef0

View File

@@ -350,7 +350,7 @@ bool PropertyAdjustmentCallback::handle(const osgGA::GUIEventAdapter& ea,osgGA::
if (_updateTransparency && cpv._transparencyProperty.valid())
{
OSG_INFO<<"Setting transparency to "<<v2<<std::endl;
cpv._transparencyProperty->setValue(v2);
cpv._transparencyProperty->setValue(1.0f-v2);
}
if (_updateSampleDensity && cpv._sampleDensityProperty.valid())