double precision fix contributed by Marios Papas

metadata
Wenzel Jakob 2011-08-02 14:03:42 -04:00
parent 38fccc241a
commit 11d3e3a997
1 changed files with 2 additions and 2 deletions

View File

@ -215,9 +215,9 @@ Spectrum computeSunRadiance(Float theta, Float turbidity) {
// Results agree with the graph (pg 132, MI)
const Float w = 2.0;
Float tauWA = std::exp(-0.2385f * k_waCurve.eval(lambda) * w * m /
std::pow(1 + 20.07f * k_waCurve.eval(lambda) * w * m, 0.45f));
std::pow(1 + 20.07f * k_waCurve.eval(lambda) * w * m, (Float) 0.45f));
data[i] = 100.0f * solCurve.eval(lambda) * tauR * tauA * tauO * tauG * tauWA;
data[i] = (Float) 100.0f * solCurve.eval(lambda) * tauR * tauA * tauO * tauG * tauWA;
wavelengths[i] = lambda;
}
InterpolatedSpectrum interpolated(wavelengths, data, 91);