From c45717fef0c03ea6eac6179f51c47b9376b803b0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 23 Feb 2011 14:09:29 +0000 Subject: [PATCH] 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. --- src/osgVolume/Property.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgVolume/Property.cpp b/src/osgVolume/Property.cpp index 6826b0600..84055926d 100644 --- a/src/osgVolume/Property.cpp +++ b/src/osgVolume/Property.cpp @@ -350,7 +350,7 @@ bool PropertyAdjustmentCallback::handle(const osgGA::GUIEventAdapter& ea,osgGA:: if (_updateTransparency && cpv._transparencyProperty.valid()) { OSG_INFO<<"Setting transparency to "<setValue(v2); + cpv._transparencyProperty->setValue(1.0f-v2); } if (_updateSampleDensity && cpv._sampleDensityProperty.valid())