avoid some argument cast warnings on windows

metadata
Wenzel Jakob 2012-10-10 20:17:07 -04:00
parent a26ba65a3a
commit f6919a34c1
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ public:
Spectrum value =
m_radiance * (2 * M_PI * (1-std::cos(m_theta))) *
(bitmap->getWidth() * bitmap->getHeight())
/ (2 * M_PI * M_PI * nSamples);
/ (2.0f * M_PI * M_PI * (Float) nSamples);
for (size_t i=0; i<nSamples; ++i) {
Vector dir = frame.toWorld(

View File

@ -178,7 +178,7 @@ public:
Spectrum value =
sunRadiance * (2 * M_PI * (1-std::cos(theta))) *
(bitmap->getWidth() * bitmap->getHeight())
/ (2 * M_PI * M_PI * nSamples);
/ (2.0f * M_PI * M_PI * (Float) nSamples);
for (size_t i=0; i<nSamples; ++i) {
Vector dir = sunFrame.toWorld(