Changed the TransprencyProperty range to 0 to 2.0 to enable forcing opaque qualities on fragments

This commit is contained in:
Robert Osfield
2014-01-23 10:50:55 +00:00
parent 8876394c7c
commit 15882aae5f

View File

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