avoid some argument cast warnings on windows
parent
a26ba65a3a
commit
f6919a34c1
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue