[Marble-commits] branches/KDE/4.5/kdeedu/marble/src/lib/blendings

Torsten Rahn tackat at kde.org
Mon Aug 16 18:52:38 CEST 2010


SVN commit 1164388 by rahn:

- Backport of 1135592



 M  +1 -1      BlendingAlgorithms.cpp  


--- branches/KDE/4.5/kdeedu/marble/src/lib/blendings/BlendingAlgorithms.cpp #1164387:1164388
@@ -131,7 +131,7 @@
 qreal DivideBlending::blendChannel( qreal const bottomColorIntensity,
                                     qreal const topColorIntensity ) const
 {
-    return log2( 1.0 + bottomColorIntensity / ( 1.0 - topColorIntensity ) / 8.0 );
+    return log( 1.0  + bottomColorIntensity / ( 1.0  - topColorIntensity ) / 8.0) / log(2.0);
 }
 
 qreal GammaDarkBlending::blendChannel( qreal const bottomColorIntensity,


More information about the Marble-commits mailing list