[Marble-commits] KDE/kdeedu/marble/src/lib/blendings
Patrick Spendrin
ps_ml at gmx.de
Mon Jun 7 19:48:19 CEST 2010
SVN commit 1135592 by sengels:
use log(x)/log(2) instead of log
CCMAIL: michael at drueing.de
M +1 -1 BlendingAlgorithms.cpp
--- trunk/KDE/kdeedu/marble/src/lib/blendings/BlendingAlgorithms.cpp #1135591:1135592
@@ -137,7 +137,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